This documentation is archived and is not being maintained.

Unit Members

Represents a length measurement.

The Unit type exposes the following members.

  NameDescription
Public method Unit Overloaded. Initializes a new instance of the Unit structure.
Top

  NameDescription
Public method Equals Compares this Unit with the specified object. (Overrides ValueType::Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns a hash code for this Unit. (Overrides ValueType::GetHashCode().)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Parse Overloaded. Converts a string to a Unit.
Public method Static member Percentage Creates a Unit of type Percentage from the specified double-precision floating-point number.
Public method Static member Pixel Creates a Unit of type Pixel from the specified 32-bit signed integer.
Public method Static member Point Creates a Unit of type Point from the specified 32-bit signed integer.
Public method ToString Overloaded. Converts a Unit to a string equivalent.
Top

  NameDescription
Public operator Static member Equality Compares two Unit objects to determine whether they are equal.
Public operator Static member Implicit Implicitly creates a Unit of type Pixel from the specified 32-bit unsigned integer.
Public operator Static member Inequality Compares two Unit objects to determine whether they are not equal.
Top

  NameDescription
Public field Static member Empty Represents an empty Unit. This field is read-only.
Top

  NameDescription
Public property IsEmpty Gets a value indicating whether the Unit is empty.
Public property Type Gets the unit type of the Unit.
Public property Value Gets the length of the Unit.
Top
Show: