This documentation is archived and is not being maintained.
Unit Members
.NET Framework 1.1
Public Constructors
Unit Constructor | Overloaded. Initializes a new instance of the Unit structure. |
Public Fields
![]() Empty | Represents an empty Unit. This field is read-only. |
Public Properties
IsEmpty | Gets a value indicating whether the Unit is empty. |
Type | Gets the unit type of the Unit. |
Value | Gets the length of the Unit. |
Public Methods
Equals | Overridden. Compares this Unit with the specified object. |
GetHashCode | Overridden. See ValueType.GetHashCode. |
GetType (inherited from Object) | Gets the Type of the current instance. |
![]() Parse | Overloaded. Converts a string to a Unit. |
![]() Percentage | Creates a Unit of type Percentage from the specified double precision floating point number. |
![]() Pixel | Creates a Unit of type Pixel from the specified 32-bit signed integer. |
![]() Point | Creates a Unit of type Point from the specified 32-bit signed integer. |
ToString | Overloaded. Converts a Unit to a string equivalent. |
Public Operators and Type Conversions
![]() Equality Operator | Compares two Unit objects to determine whether they are equal. |
![]() Inequality Operator | Compares two Unit objects to determine whether they are not equal. |
![]() Int32 to Unit Conversion | Implicitly creates a Unit of type Pixel from the specified 32-bit unsigned integer. |
Protected Methods
Finalize (inherited from Object) | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
See Also
Show:


