ControlStyle Property

WebControl.ControlStyle Property


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

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

public Style ControlStyle { get; }

Property Value

Type: System.Web.UI.WebControls.Style

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.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft