Export (0) Print
Expand All

Unit.Type Property

Gets the unit type of the Unit.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public UnitType Type { get; }

Property Value

Type: System.Web.UI.WebControls.UnitType
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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
© 2015 Microsoft