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