Click or drag to resize
Pdftools logo

LengthParseUnit Method

Creates a Length object.

Namespace: PdfTools.Geometry.Units
Assembly: PdfTools (in PdfTools.dll) Version: 1.5.0+84bd4d36da7e2449ee09fddee89e23a99b6ffcca
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