 | LengthParseArray(String, Int32) Method |
Creates an array of
Length by parsing a string representation of lengths with units.
Namespace: PdfTools.Geometry.UnitsAssembly: PdfTools (in PdfTools.dll) Version: 1.7.0+cfcc11b476b3e1eb4320f0f37269191f64e36bd8
Syntaxpublic static Length[] ParseArray(
string value,
int size
)
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".
- size Int32
- Number of value-unit pairs represented by the value.
Return Value
Length
ExceptionsException | Condition |
---|
ArgumentException | if size doesn't fit the number of values in value. |
ArgumentException | if a unit is invalid. |
See Also