Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Type Property
Collapse the table of content
Expand the table of content

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

© 2015 Microsoft