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

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

See Also: Inherited members from System.ComponentModel.Component

Public Methods

AddAttributesToRender(System.Web.UI.HtmlTextWriter)

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

AddAttributesToRender(System.Web.UI.HtmlTextWriter, WebControl)

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

CopyFrom(Style)

Duplicates the style properties of the specified System.Web.UI.WebControls.Style into the instance of the System.Web.UI.WebControls.Style class that this method is called from.

GetStyleAttributes(System.Web.UI.IUrlResolutionService) : System.Web.UI.CssStyleCollection

Retrieves the System.Web.UI.CssStyleCollection object for the specified System.Web.UI.IUrlResolutionService-implemented object.

MergeWith(Style)

Combines the style properties of the specified System.Web.UI.WebControls.Style with the instance of the System.Web.UI.WebControls.Style class that this method is called from.

Reset()

Removes any defined style elements from the state bag.

SetDirty()

Marks the System.Web.UI.WebControls.Style so that its state will be recorded in view state.

override
ToString() : string

Returns a string that represents the current object.

Protected Methods

FillStyleAttributes(System.Web.UI.CssStyleCollection, System.Web.UI.IUrlResolutionService)

Adds the specified object's style properties to a System.Web.UI.CssStyleCollection object.

LoadViewState(object)

Loads the previously saved state.

SaveViewState() : object

A protected method. Saves any state that has been modified after the Style.TrackViewState method was invoked.

SetBit(int)

A protected internal method. Sets an internal bitmask field that indicates the style properties that are stored in the state bag.

TrackViewState()

A protected method. Marks the beginning for tracking state changes on the control. Any changes made after tracking has begun will be tracked and saved as part of the control view state.