[]
Attempts to convert the current unit value to other unit of measurement.
Only absolute units can be converted. This method throws an exception if the conversion cannot be performed.
public double ConvertUnit(UnitTypeEnum destUnitType)
Public Function ConvertUnit(destUnitType As UnitTypeEnum) As Double
| Type | Name | Description |
|---|---|---|
| UnitTypeEnum | destUnitType | The target UnitTypeEnum. |
| Type | Description |
|---|---|
| double | The value in |
Attempts to convert the current unit value to other unit of measurement.
Only absolute units can be converted. This method throws an exception if the conversion cannot be performed.
public double ConvertUnit(UnitTypeEnum destUnitType, float destDpi)
Public Function ConvertUnit(destUnitType As UnitTypeEnum, destDpi As Single) As Double
| Type | Name | Description |
|---|---|---|
| UnitTypeEnum | destUnitType | The target UnitTypeEnum. |
| float | destDpi | The target resolution (used if |
| Type | Description |
|---|---|
| double | The value in |
Attempts to convert the current unit value to other unit of measurement.
Only absolute units can be converted. This method throws an exception if the conversion cannot be performed.
public double ConvertUnit(float sourceDpi, UnitTypeEnum destUnitType, float destDpi)
Public Function ConvertUnit(sourceDpi As Single, destUnitType As UnitTypeEnum, destDpi As Single) As Double
| Type | Name | Description |
|---|---|---|
| float | sourceDpi | The current unit value's resolution (used if Units is Pixel). |
| UnitTypeEnum | destUnitType | The target UnitTypeEnum. |
| float | destDpi | The target resolution (used if |
| Type | Description |
|---|---|
| double | The value in |