Click or drag to resize
Pdftools logo

LengthParseUnit Method

Creates a Length object.

Namespace: PdfTools.Geometry.Units
Assembly: PdfTools (in PdfTools.dll) Version: 1.1.0.0
Syntax
C#
public static Length ParseUnit(
	double value,
	string unit
)

Parameters

value  Double
The value of the provided length.
unit  String
The unit of the value. Allowed units are: "um", "mm", "cm", "m", "km", "pt" and "in".

Return Value

Length
Exceptions
ExceptionCondition
ArgumentExceptionif unit is invalid.
See Also