System.Web.UI.WebControls.Unit Members

The members of System.Web.UI.WebControls.Unit are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Initializes a new instance of the System.Web.UI.WebControls.Unit structure with the specified double precision floating point number.

Initializes a new instance of the System.Web.UI.WebControls.Unit structure with the specified 32-bit signed integer.

Initializes a new instance of the System.Web.UI.WebControls.Unit structure with the specified length.

Initializes a new instance of the System.Web.UI.WebControls.Unit structure with the specified double precision floating point number and System.Web.UI.WebControls.UnitType.

Initializes a new instance of the System.Web.UI.WebControls.Unit structure with the specified length and System.Globalization.CultureInfo.

Public Fields

static readonly
EmptyUnit.

Represents an empty System.Web.UI.WebControls.Unit. This field is read-only.

Public Properties

[read-only]
IsEmptybool.

Gets a value indicating whether the System.Web.UI.WebControls.Unit is empty.

[read-only]
TypeUnitType.

Gets the unit type of the System.Web.UI.WebControls.Unit.

[read-only]
Valuedouble.

Gets the length of the System.Web.UI.WebControls.Unit.

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.

Public Operators

static
Equality(Unit, Unit)

Compares two System.Web.UI.WebControls.Unit objects to determine whether they are equal.

static
Inequality(Unit, Unit)

Compares two System.Web.UI.WebControls.Unit objects to determine whether they are not equal.

static
Conversion to System.Web.UI.WebControls.Unit(Implicit)Documentation for this section has not yet been entered.