Unit.Type Property


Gets the unit type of the Unit.

 property System::Web::UI::WebControls::UnitType Type { System::Web::UI::WebControls::UnitType get(); };
public System.Web.UI.WebControls.UnitType Type { get; }
member this.Type : System.Web.UI.WebControls.UnitType
Public ReadOnly Property Type As UnitType

Property Value

One of the UnitType enumeration values. The default is Pixel.


Use the Type property to determine the unit of measurement that the Unit represents, such as pixels. The Type property is represented by one of the UnitType enumeration values.


If IsEmpty property is set to true, the Point enumeration value is returned.

Applies to

See also