This documentation is archived and is not being maintained.

Unit Methods

The Unit type exposes the following members.

  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(String) Converts the specified string to a Unit.
Public method Static member Parse(String, CultureInfo) Converts the specified string and System.Globalization::CultureInfo 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() Infrastructure. Converts a Unit to a System::String. (Overrides ValueType::ToString().)
Public method ToString(CultureInfo) Converts a Unit to a string equivalent in the specified culture.
Public method ToString(IFormatProvider) Converts a Unit to a string equivalent using the specified format provider.
Top
Show: