System.Web.UI.WebControls.Style Class

Represents the style of a Web server control.

See Also: Style Members

Syntax

[System.ComponentModel.ToolboxItem("")]
public class Style : System.ComponentModel.Component, System.Web.UI.IStateManager

Remarks

The System.Web.UI.WebControls.Style class encapsulates the properties that control the appearance of a Web server control and can be applied to multiple Web server controls to provide a common appearance. You can specify the background color and font color of a control by setting the WebControl.BackColor and WebControl.ForeColor properties, respectively. On controls that can display a border, you can control the border width, the border style, and the border color by setting the WebControl.BorderWidth, WebControl.BorderStyle, and WebControl.BorderColor properties. The size of a Web server control can also be specified by using the WebControl.Height and WebControl.Width properties.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0