This documentation is archived and is not being maintained.

WebControl.ControlStyle Property

Gets the style of the Web server control. This property is used primarily by control developers.

[Visual Basic]
Public ReadOnly Property ControlStyle As Style
public Style ControlStyle {get;}
public: __property Style* get_ControlStyle();
public function get ControlStyle() : Style;

Property Value

A Style that encapsulates the appearance properties of the Web server control.


The ControlStyle property encapsulates all properties of the WebControl class that specify the appearance of the control, such as BorderColor and Font.


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

See Also

WebControl Class | WebControl Members | System.Web.UI.WebControls Namespace | Style | ControlStyleCreated