Click or drag to resize
Pdftools logo

LengthParseArray(String) Method

Creates an array of Length by parsing a string representation of lengths with units.

Namespace: PdfTools.Geometry.Units
Assembly: PdfTools (in PdfTools.dll) Version: 1.5.0+84bd4d36da7e2449ee09fddee89e23a99b6ffcca
Syntax
C#
public static Length[] ParseArray(
	string value
)

Parameters

value  String
A group of value-unit pairs of the form "<value1><unit1> <value2><unit2>...". Example: "12.3cm 23.9mm 0.25in" etc. Allowed units are "um", "mm", "cm", "m", "km", "pt" and "in".

Return Value

Length
Exceptions
ExceptionCondition
ArgumentExceptionif a unit is invalid.
See Also