[]
Converts an absolute length represented by a C1.C1Preview.LengthAbs object to a double value expressed in the current document's ResolvedUnit units.
public double GetLengthAbsValue(LengthAbs length, Font font)
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 |
Type | Description |
---|---|
double | The converted double value. |
Converts an absolute length represented by a C1.C1Preview.LengthAbs object to a double value expressed in the current document's ResolvedUnit units.
public double GetLengthAbsValue(LengthAbs length, Style style, IScriptContext context)
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 |
IScriptContext | context | C1.C1Preview.Scripting.IScriptContext that should be used to get calculated properties. |
Type | Description |
---|---|
double | The converted double value. |