System.Web.UI.WebControls.Unit: Method Members

The methods of System.Web.UI.WebControls.Unit are listed below. For a list of all members, see the Unit Members list.

See Also: Inherited members from System.ValueType

Public Methods

override
Equals(object) : bool

Compares this System.Web.UI.WebControls.Unit with the specified object.

override
GetHashCode() : int

Returns a hash code for this System.Web.UI.WebControls.Unit.

static
Parse(string) : Unit

Converts the specified string to a System.Web.UI.WebControls.Unit.

static
Parse(string, System.Globalization.CultureInfo) : Unit

Converts the specified string and System.Globalization.CultureInfo to a System.Web.UI.WebControls.Unit.

static
Percentage(double) : Unit

Creates a System.Web.UI.WebControls.Unit of type UnitType.Percentage from the specified double-precision floating-point number.

static
Pixel(int) : Unit

Creates a System.Web.UI.WebControls.Unit of type UnitType.Pixel from the specified 32-bit signed integer.

static
Point(int) : Unit

Creates a System.Web.UI.WebControls.Unit of type UnitType.Point from the specified 32-bit signed integer.

override
ToString() : string

Converts a System.Web.UI.WebControls.Unit to a string.

ToString(System.Globalization.CultureInfo) : string

Converts a System.Web.UI.WebControls.Unit to a string equivalent in the specified culture.

ToString(IFormatProvider) : string

Converts a System.Web.UI.WebControls.Unit to a string equivalent using the specified format provider.