The Unit type exposes the following members.

Methods

  NameDescription
Public methodEquals
Determines whether two Object instances are equal.
(Overrides ValueType..::..Equals(Object).)
Public methodStatic memberFromPixels
Create a unit from pixels and a resolution. Useful for working with images.
Public methodGetHashCode
Calculates a hash for this type.
(Overrides ValueType..::..GetHashCode()()()().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberParse
Create a unit from a string.
Public methodStatic memberToPoints
Convert a unit string to points
Public methodToString
Returns the value of the Unit as a formatted string in points.
(Overrides ValueType..::..ToString()()()().)

See Also