[]
Initializes a new instance of the Unit structure from a string. String should contain A numeric value qualified with unit of measurement, e.g. "28mm" or "7in".
public Unit(string str)
Public Sub New(str As String)
Type | Name | Description |
---|---|---|
string | str |
Initializes a new instance of the Unit structure.
public Unit(float value, UnitTypeEnum unitType)
Public Sub New(value As Single, unitType As UnitTypeEnum)
Type | Name | Description |
---|---|---|
float | value | The unit value. |
UnitTypeEnum | unitType | The unit of measurement. |