ControlCollection

ControlCollection

System.Web.UI (system.web.dll)class

This class represents a collection of controls. It allows pages and other controls to specify their child controls (as with the Page.Controls Property).

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[int index]{get; }
// Protected Instance Properties
   protected Control Owner{get; }
// Public Instance Methods
   public virtual void Add(Control child);
   public virtual void AddAt(int index, Control child);
   public virtual void Clear( );
   public virtual bool Contains(Control c);
   public void CopyTo(Array array, int index);                  // implements ICollection
   public IEnumerator GetEnumerator( );              // implements IEnumerable
   public virtual int IndexOf(Control value);
   public virtual void Remove(Control value);
   public virtual void RemoveAt(int index);
}

Subclasses

EmptyControlCollection

Returned By

Control.{Controls, CreateControlCollection( )}



    Part I: Introduction to ASP.NET
    Part III: Namespace Reference
    Chapter 40. The System.Web.UI.MobileControls Namespace
    Chapter 42. The System.Web.UI.WebControls Namespace