This documentation is archived and is not being maintained.

Unit Methods

The methods of the Unit structure are listed here. For a complete list of Unit structure members, see the Unit Members topic.

Public Methods

public methodEquals Overridden. Compares this Unit with the specified object.
public methodGetHashCode Overridden. See ValueType.GetHashCode.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodstatic (Shared in Visual Basic)Parse Overloaded. Converts a string to a Unit.
public methodstatic (Shared in Visual Basic)Percentage Creates a Unit of type Percentage from the specified double precision floating point number.
public methodstatic (Shared in Visual Basic)Pixel Creates a Unit of type Pixel from the specified 32-bit signed integer.
public methodstatic (Shared in Visual Basic)Point Creates a Unit of type Point from the specified 32-bit signed integer.
public methodToString Overloaded. Converts a Unit to a string equivalent.

Protected Methods

protected methodFinalize (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.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Unit Structure | System.Web.UI.WebControls Namespace

Show: