This documentation is archived and is not being maintained.

Unit.Type Property

Gets the unit type of the Unit.

[Visual Basic]
Public ReadOnly Property Type As UnitType
public UnitType Type {get;}
public: __property UnitType get_Type();
public function get Type() : UnitType;

Property Value

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


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

Note   If IsEmpty property is set to true, the UnitType.Pixel enumeration value is returned.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Unit Structure | Unit Members | System.Web.UI.WebControls Namespace | UnitType | Value