System.Web.UI.CssStyleCollection Members

The members of System.Web.UI.CssStyleCollection are listed below.

See Also: Inherited members from System.Object

Public Properties

[read-only]
Countint.

Gets the number of items in the System.Web.UI.CssStyleCollection object.

default property
Item(string)string. Documentation for this section has not yet been entered.
default property
Item(HtmlTextWriterStyle)string. Documentation for this section has not yet been entered.
[read-only]
KeysICollection.

Gets a collection of keys to all the styles in the System.Web.UI.CssStyleCollection object for a specific HTML server control.

Valuestring.

Gets or sets the value of the style attribute of the HTML server control.

Public Methods

Add(string, string)

Adds a style item to the System.Web.UI.CssStyleCollection of a control using the specified name/value pair.

Add(HtmlTextWriterStyle, string)

Adds a style item to the System.Web.UI.CssStyleCollection collection of a control using the specified System.Web.UI.HtmlTextWriterStyle enumeration value and corresponding value.

Clear()

Removes all style items from the System.Web.UI.CssStyleCollection object.

Remove(string)

Removes a style item from the System.Web.UI.CssStyleCollection of a control using the specified style key.

Remove(HtmlTextWriterStyle)

Removes a style item from the System.Web.UI.CssStyleCollection collection of a control using the specified System.Web.UI.HtmlTextWriterStyle enumeration value.