[This is preliminary documentation and is subject to change.]
The Unit type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Equals |
Determines whether two Object instances are equal.
(Overrides ValueType..::..Equals(Object).) | |
| FromPixels |
Create a unit from pixels and a resolution. Useful for
working with images.
| |
| GetHashCode |
Calculates a hash for this type.
(Overrides ValueType..::..GetHashCode()()()().) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Parse |
Create a unit from a string.
| |
| ToPoints |
Convert a unit string to points
| |
| ToString |
Returns the value of the Unit as a formatted string in points.
(Overrides ValueType..::..ToString()()()().) |