
646
|
Chapter 36: The System.Web.UI Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Subclasses
EmptyControlCollection
Returned By
Control.{Controls, CreateControlCollection( )}
CssStyleCollection
System.Web.UI (system.web.dll)
sealed class
This class contains a name-value collection of cascading style sheet (CSS) attributes for
a specific control. CSS styles are used to configure many aspects of a control’s appear-
ance (such as font and color) and are supported for both web controls and HTML
controls. A CssStyleCollection is provided through the System.Web.UI.HtmlControls.HtmlControl.Style
and System.Web.UI.WebControls.WebControl.Style properties. This collection is similar to the
AttributeCollection class, and you can retrieve values by using the specific attribute name or
enumerating through the read-only Keys collection.
Returned By
AttributeCollection.CssStyle, System.Web.UI.HtmlControls.HtmlControl.Style, System.Web.UI.
WebControls.WebControl.Style
public class ControlCollection : ICollection, IEnumerable {
// Public Constructors
public ControlCollection(Control owner);
// Public Instance Properties
public int Count{get; } // implements ICollection
public bool IsReadOnly{get; }
public bool IsSynchronized{get; } // implements ICollection
public object SyncRoot{get; } // implements ICollection
public virtual Control this