[]
Converts value of this Unit structure to value in specified units of measurement.
public float Convert(UnitTypeEnum to)
| 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)
| 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)
| 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)
| 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 |
|