Unit Methods

The Unit type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether two Object instances are equal.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberCode exampleFromPixels
Create a unit from pixels and a resolution. Useful for working with images.
Public methodGetHashCode
Calculates a hash for this type.
(Overrides ValueType.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberParse
Create a unit from a string.
Public methodStatic memberToPoints
Convert a unit string to points
Public methodCode exampleToString
Returns the value of the Unit as a formatted string in points.
(Overrides ValueType.)
Top
See Also