System.Web.UI.WebControls.WebControl Members

The members of System.Web.UI.WebControls.WebControl are listed below.

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

Public Constructors

Initializes a new instance of the System.Web.UI.WebControls.WebControl class using the specified HTML tag.

Protected Constructors

Initializes a new instance of the System.Web.UI.WebControls.WebControl class that represents a Span HTML tag.

Initializes a new instance of the System.Web.UI.WebControls.WebControl class using the specified HTML tag.

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.

Public Methods

ApplyStyle(System.Web.UI.WebControls.Style)

Copies any nonblank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.

CopyBaseAttributes(System.Web.UI.WebControls.WebControl)

Copies the properties not encapsulated by the WebControl.Style object from the specified Web server control to the Web server control that this method is called from. This method is used primarily by control developers.

MergeStyle(System.Web.UI.WebControls.Style)

Copies any nonblank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is used primarily by control developers.

RenderBeginTag(HtmlTextWriter)

Renders the HTML opening tag of the control to the specified writer. This method is used primarily by control developers.

RenderEndTag(HtmlTextWriter)

Renders the HTML closing tag of the control into the specified writer. This method is used primarily by control developers.

Protected Methods

AddAttributesToRender(HtmlTextWriter)

Adds HTML attributes and styles that need to be rendered to the specified System.Web.UI.HtmlTextWriterTag. This method is used primarily by control developers.

CreateControlStyle() : System.Web.UI.WebControls.Style

Creates the style object that is used internally by the System.Web.UI.WebControls.WebControl class to implement all style related properties. This method is used primarily by control developers.

override
LoadViewState(object)

Restores view-state information from a previous request that was saved with the WebControl.SaveViewState method.

override
Render(HtmlTextWriter)

Renders the control to the specified HTML writer.

RenderContents(HtmlTextWriter)

Renders the contents of the control to the specified writer. This method is used primarily by control developers.

override
SaveViewState() : object

Saves any state that was modified after the Style.TrackViewState method was invoked.

override
TrackViewState()

Causes the control to track changes to its view state so they can be stored in the object's System.Web.UI.Control.ViewState property.

Explicitly Implemented Interface Members

System.Web.UI.IAttributeAccessor.GetAttribute

Gets an attribute of the Web control with the specified name.

System.Web.UI.IAttributeAccessor.SetAttribute

Sets an attribute of the Web control to the specified name and value.