Pdftools SDK
Pdftools SDK
Namespaces
PdfTools.Geometry.Units
Length Structure
Length Methods
Abs Method
cm Method
Equals Method
GetHashCode Method
in Method
km Method
m Method
Max Method
Min Method
mm Method
Parse Method
ParseArray Method
ParseUnit Method
pt Method
ToString Method
um Method
Length
Parse
Unit Method
Creates a
Length
object.
Namespace:
PdfTools.Geometry.Units
Assembly:
PdfTools (in PdfTools.dll) Version: 1.4.0+fc8bb87ea2616e7f35d94e0588d333abae862a7a
Syntax
C#
Copy
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
Exception
Condition
ArgumentException
if
unit
is invalid.
See Also
Reference
Length Structure
PdfTools.Geometry.Units Namespace
Copyright © PDF Tools AG 2024