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

The methods 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 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.