LengthUnitConverter Class
Utility class used for converting values between various LengthUnit measurement units.
- Inheritance:
- System.ObjectLengthUnitConverter
Remarks
All dimensional formatting properties in GemBox.Document are represented in Points.
For more information, see unit conversion example.
Methods
Convert(Double, LengthUnit, LengthUnit)
Converts the specified length
from sourceUnit
measurement unit to destinationUnit
measurement unit.
public static double Convert(double length, LengthUnit sourceUnit, LengthUnit destinationUnit)
Public Shared Function Convert(length As Double, sourceUnit As LengthUnit, destinationUnit As LengthUnit) As Double
Parameters
length
- System.Double
The length that will be converted.
sourceUnit
- LengthUnit
The source measurement unit.
destinationUnit
- LengthUnit
The destination measurement unit.
Returns
- System.Double
The length
expressed in destinationUnit
measurement unit.