Click or drag to resize
Pdftools logo

LengthParse Method

Creates a Length object by parsing a string representation of a length with its unit.

Namespace: PdfTools.Geometry.Units
Assembly: PdfTools (in PdfTools.dll) Version: 1.4.0+fc8bb87ea2616e7f35d94e0588d333abae862a7a
Syntax
C#
public static Length Parse(
	string value
)

Parameters

value  String
Value-unit pair of the form "<value><unit>". Examples: "12.3cm" or "23.9mm". Allowed units are "um", "mm", "cm", "m", "km", "pt", and "in".

Return Value

Length
Exceptions
ExceptionCondition
ArgumentExceptionif unit given in value is invalid.
See Also