[]
Converts value of this Unit structure to value in specified units of measurement.
public double Convert(UnitTypeEnum to)
Public Function Convert([to] As UnitTypeEnum) As Double
| Type | Name | Description |
|---|---|---|
| UnitTypeEnum | to | The target unit of measurement. |
| Type | Description |
|---|---|
| double | Returns the value in |
Converts a value from pixel unit of measurement to another.
public static double Convert(double value, double fromDpi, UnitTypeEnum to)
Public Shared Function Convert(value As Double, fromDpi As Double, [to] As UnitTypeEnum) As Double
| Type | Name | Description |
|---|---|---|
| double | value | The value to convert in pixels. |
| double | fromDpi | The source dpi. |
| UnitTypeEnum | to | The target unit of measurement. |
| Type | Description |
|---|---|
| double |
|
Converts a value from one unit of measurement to pixel.
public static double Convert(double value, UnitTypeEnum from, double toDpi)
Public Shared Function Convert(value As Double, from As UnitTypeEnum, toDpi As Double) As Double
| Type | Name | Description |
|---|---|---|
| double | value | The value to convert in |
| UnitTypeEnum | from | The source unit of measurement. |
| double | toDpi | The target dpi. |
| Type | Description |
|---|---|
| double |
|
Converts a value from one unit of measurement to another.
public static double Convert(double value, UnitTypeEnum from, UnitTypeEnum to)
Public Shared Function Convert(value As Double, from As UnitTypeEnum, [to] As UnitTypeEnum) As Double
| Type | Name | Description |
|---|---|---|
| double | value | The value to convert. |
| UnitTypeEnum | from | The source unit of measurement. |
| UnitTypeEnum | to | The target unit of measurement. |
| Type | Description |
|---|---|
| double |
|