[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintDocument.GetLengthAbsValue

GetLengthAbsValue Method

GetLengthAbsValue(LengthAbs, Font)

Converts an absolute length represented by a C1.C1Preview.LengthAbs object to a double value expressed in the current document's ResolvedUnit units.

Declaration
public double GetLengthAbsValue(LengthAbs length, Font font)
Parameters
Type Name Description
LengthAbs length

The length to convert. If it is expressed in Default, the current document's DefaultUnit units are used.

Font font

The font to use if length is expressed in Em, Ex or LineSpacing (otherwise, it can be null).

Returns
Type Description
double

The converted double value.

GetLengthAbsValue(LengthAbs, Style, IScriptContext)

Converts an absolute length represented by a C1.C1Preview.LengthAbs object to a double value expressed in the current document's ResolvedUnit units.

Declaration
public double GetLengthAbsValue(LengthAbs length, Style style, IScriptContext context)
Parameters
Type Name Description
LengthAbs length

The length to convert. If it is expressed in Default, the current document's DefaultUnit units are used.

Style style

The Style providing the font, required if length is expressed in Em, Ex or LineSpacing (otherwise, it can be null).

IScriptContext context

C1.C1Preview.Scripting.IScriptContext that should be used to get calculated properties.

Returns
Type Description
double

The converted double value.