Click or drag to resize

LengthFrom Method

Converts a length value in a specified measurement unit to a Length instance.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1045 (21.3.35.1045)
Syntax
public static Length From(
	double value,
	LengthUnit unit
)

Parameters

value
Type: SystemDouble
The length value.
unit
Type: GemBox.PresentationLengthUnit
The measurement unit.

Return Value

Type: Length
A Length instance that is equivalent to a specified input length in a specified measurement unit.
See Also