Attempts to convert the current unit value to other unit of measurement.
Namespace:
C1.C1PreviewOnly absolute units can be converted. This method throws an exception if the conversion cannot be performed.
Assembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
public double ConvertUnit( float sourceDpi, UnitTypeEnum destUnitType, float destDpi ) |
Visual Basic |
---|
Public Function ConvertUnit ( _ sourceDpi As Single, _ destUnitType As UnitTypeEnum, _ destDpi As Single _ ) As Double |
Parameters
- sourceDpi
- Type: System..::..Single
The current unit value's resolution (used if Units is Pixel).
- destUnitType
- Type: C1.C1Preview..::..UnitTypeEnum
The target UnitTypeEnum.
- destDpi
- Type: System..::..Single
The target resolution (used if destUnitType is Pixel).