| LengthParse Method |
Creates a
Length object by parsing a string representation of a length with its unit.
Namespace: PdfTools.Geometry.UnitsAssembly: PdfTools (in PdfTools.dll) Version: 1.7.0+cfcc11b476b3e1eb4320f0f37269191f64e36bd8
Syntax 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
LengthExceptions Exception | Condition |
---|
ArgumentException | if unit given in value is invalid. |
See Also