ConvertUnits(Double,UnitTypeEnum,UnitTypeEnum,Single,Single) Method
In This Topic
Converts a value from one unit of measurement to another.
Syntax
'Declaration
Public Shared Function ConvertUnits( _
ByVal As System.Double, _
ByVal As UnitTypeEnum, _
ByVal As UnitTypeEnum, _
ByVal As System.Single, _
ByVal As System.Single _
) As System.Double
public static System.double ConvertUnits(
System.double ,
UnitTypeEnum ,
UnitTypeEnum ,
System.float ,
System.float
)
Parameters
- value
- The value to convert.
- from
- The source unit of measurement.
- to
- The target unit of measurement.
- fromDpi
- The source DPI (used if is UnitTypeEnum.Pixel).
- toDpi
- The target DPI (used if is UnitTypeEnum.Pixel).
Return Value
converted to units.
See Also