System.Web.UI.CssStyleCollection: Method Members

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

See Also: Inherited members from System.Object

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.