System.Web.UI.WebControls.Style Members

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

See Also: Inherited members from System.ComponentModel.Component

Public Constructors

Initializes a new instance of the System.Web.UI.WebControls.Style class using default values.

Initializes a new instance of the System.Web.UI.WebControls.Style class with the specified state bag information.

Public Properties

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 server control.

BorderStyleBorderStyle.

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

BorderWidthUnit.

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

CssClassstring.

Gets or sets the cascading style sheet (CSS) class rendered by the Web server control on the client.

[read-only]
FontFontInfo.

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.

HeightUnit.

Gets or sets the height of the Web server control.

[read-only]
IsEmptybool.

A protected property. Gets a value indicating whether any style elements have been defined in the state bag.

[read-only]
RegisteredCssClassstring.

Gets the cascading style sheet (CSS) class that is registered with the control.

WidthUnit.

Gets or sets the width of the Web server control.

Protected Properties

[read-only]
IsTrackingViewStatebool.

Returns a value indicating whether any style elements have been defined in the state bag.

[read-only]
ViewStateSystem.Web.UI.StateBag.

Gets the state bag that holds the style elements.

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.

Explicitly Implemented Interface Members

[read-only]
System.Web.UI.IStateManager.IsTrackingViewStatebool.

Gets a value that indicates whether a server control is tracking its view state changes.

System.Web.UI.IStateManager.LoadViewState

Loads the previously saved state.

System.Web.UI.IStateManager.SaveViewState

Returns the object containing state changes.

System.Web.UI.IStateManager.TrackViewState

Starts tracking state changes.