PrintDocument for WinForms | ComponentOne
C1.PrintDocument.8 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / GetLengthAbsValue Method / GetLengthAbsValue(LengthAbs,Font) Method
The length to convert. If it is expressed in UnitTypeEnum.Default, the current document's C1PrintDocument.DefaultUnit units are used.
The font to use if length is expressed in UnitTypeEnum.Em, UnitTypeEnum.Ex or UnitTypeEnum.LineSpacing (otherwise, it can be null).

In This Topic
    GetLengthAbsValue(LengthAbs,Font) Method
    In This Topic
    Converts an absolute length represented by a LengthAbs object to a double value expressed in the current document's C1PrintDocument.ResolvedUnit units.
    Syntax
    'Declaration
     
    Public Overloads Function GetLengthAbsValue( _
       ByVal length As LengthAbs, _
       ByVal font As Font _
    ) As Double
    public double GetLengthAbsValue( 
       LengthAbs length,
       Font font
    )

    Parameters

    length
    The length to convert. If it is expressed in UnitTypeEnum.Default, the current document's C1PrintDocument.DefaultUnit units are used.
    font
    The font to use if length is expressed in UnitTypeEnum.Em, UnitTypeEnum.Ex or UnitTypeEnum.LineSpacing (otherwise, it can be null).

    Return Value

    The converted double value.
    See Also