Converts a value from one unit of measurement to another.
Namespace:
C1.C1PreviewAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
public static double ConvertUnits( double value, UnitTypeEnum from, UnitTypeEnum to, float fromDpi, float toDpi ) |
Visual Basic |
---|
Public Shared Function ConvertUnits ( _ value As Double, _ from As UnitTypeEnum, _ to As UnitTypeEnum, _ fromDpi As Single, _ toDpi As Single _ ) As Double |
Parameters
- value
- Type: System..::..Double
The value to convert.
- from
- Type: C1.C1Preview..::..UnitTypeEnum
The source unit of measurement.
- to
- Type: C1.C1Preview..::..UnitTypeEnum
The target unit of measurement.
- fromDpi
- Type: System..::..Single
The source DPI (used if from is Pixel).
- toDpi
- Type: System..::..Single
The target DPI (used if to is Pixel).