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

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public double GetLengthAbsValue(
	LengthAbs length,
	Style style,
	IScriptContext context
)
Visual Basic
Public Function GetLengthAbsValue ( _
	length As LengthAbs, _
	style As Style, _
	context As IScriptContext _
) As Double

Parameters

length
Type: LengthAbs
The length to convert. If it is expressed in Default, the current document's DefaultUnit units are used.
style
Type: C1.C1Preview..::..Style
The Style providing the font, required if length is expressed in Em, Ex or LineSpacing (otherwise, it can be null).
context
Type: IScriptContext
IScriptContext that should be used to get calculated properties.

Return Value

The converted double value.

See Also