System.Web.UI.WebControls.WebControl: Property Members

The properties of System.Web.UI.WebControls.WebControl are listed below. For a list of all members, see the WebControl Members list.

See Also: Inherited members from System.Web.UI.Control

Public Properties

AccessKeystring.

Gets or sets the access key that allows you to quickly navigate to the Web server control.

[read-only]
AttributesAttributeCollection.

Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.

BackColorSystem.Drawing.Color.

Gets or sets the background color of the Web server control.

BorderColorSystem.Drawing.Color.

Gets or sets the border color of the Web control.

BorderStyleSystem.Web.UI.WebControls.BorderStyle.

Gets or sets the border style of the Web server control.

BorderWidthSystem.Web.UI.WebControls.Unit.

Gets or sets the border width of the Web server control.

[read-only]
ControlStyleSystem.Web.UI.WebControls.Style.

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

[read-only]
ControlStyleCreatedbool.

Gets a value indicating whether a System.Web.UI.WebControls.Style object has been created for the WebControl.ControlStyle property. This property is primarily used by control developers.

CssClassstring.

Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client.

Enabledbool.

Gets or sets a value indicating whether the Web server control is enabled.

EnableThemingbool.

Gets or sets a value indicating whether themes apply to this control.

[read-only]
FontSystem.Web.UI.WebControls.FontInfo.

Gets the font properties associated with the Web server control.

ForeColorSystem.Drawing.Color.

Gets or sets the foreground color (typically the color of the text) of the Web server control.

[read-only]
HasAttributesbool.

Gets a value indicating whether the control has attributes set.

HeightSystem.Web.UI.WebControls.Unit.

Gets or sets the height of the Web server control.

SkinIDstring.

Gets or sets the skin to apply to the control.

[read-only]
StyleCssStyleCollection.

Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control.

TabIndexshort.

Gets or sets the tab index of the Web server control.

ToolTipstring.

Gets or sets the text displayed when the mouse pointer hovers over the Web server control.

WidthSystem.Web.UI.WebControls.Unit.

Gets or sets the width of the Web server control.

Protected Properties

[read-only]
IsEnabledbool.

Gets a value indicating whether the control is enabled.

[read-only]
TagKeyHtmlTextWriterTag.

Gets the System.Web.UI.HtmlTextWriterTag value that corresponds to this Web server control. This property is used primarily by control developers.

[read-only]
TagNamestring.

Gets the name of the control tag. This property is used primarily by control developers.