[]
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)
Type | Name | Description |
---|---|---|
string | str |
Initializes a new instance of the Unit structure.
public Unit(double value, UnitTypeEnum unitType)
Type | Name | Description |
---|---|---|
double | value | The unit value. |
UnitTypeEnum | unitType | The unit of measurement. |