This documentation is archived and is not being maintained.

Style Properties

The properties of the Style class are listed here. For a complete list of Style class members, see the Style Members topic.

Public Properties

public propertyBackColor Gets or sets the background color of the Web server control.
public propertyBorderColor Gets or sets the border color of the Web server control.
public propertyBorderStyle Gets or sets the border style of the Web server control.
public propertyBorderWidth Gets or sets the border width of the Web server control.
public propertyContainer (inherited from Component) Gets the IContainer that contains the Component.
public propertyCssClass Gets or sets the CSS class rendered by the Web server control on the client.
public propertyFont Gets the font properties associated with the Web server control.
public propertyForeColor Gets or sets the foreground color (typically the color of the text) of the Web server control.
public propertyHeight Gets or sets the height of the Web server control.
public propertySite (inherited from Component) Gets or sets the ISite of the Component.
public propertyWidth Gets or sets the width of the Web server control.

Protected Properties

protected propertyDesignMode (inherited from Component) Gets a value that indicates whether the Component is currently in design mode.
protected propertyEvents (inherited from Component) Gets the list of event handlers that are attached to this Component.
protected propertyIsTrackingViewState Returns a value indicating whether any style elements have been defined in the state bag.

See Also

Style Class | System.Web.UI.WebControls Namespace

Show: