System.Web.UI.CssStyleCollection Class

Contains the HTML cascading-style sheets (CSS) inline style attributes for a specified HTML server control. This class cannot be inherited.

See Also: CssStyleCollection Members

Syntax

public sealed class CssStyleCollection

Remarks

Any style declared for a particular HTML server control is added to the collection when the containing Web Forms page is parsed. It automatically parses and exposes CSS properties through a dictionary pattern API. You can manipulate any CSS property on a server control through the System.Web.UI.HtmlControls.HtmlControl.Style property. Simply use the CSS property's key and value in the indexed collection.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0