Click or drag to resize
Pdftools logo

LengthParseUnit Method

Creates a Length object.

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