System.Web.UI.ControlCollection: Method Members

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

See Also: Inherited members from System.Object

Public Methods

Add(Control)

Adds the specified System.Web.UI.Control object to the collection.

AddAt(int, Control)

Adds the specified System.Web.UI.Control object to the collection at the specified index location.

Clear()

Removes all controls from the current server control's System.Web.UI.ControlCollection object.

Contains(Control) : bool

Determines whether the specified server control is in the parent server control's System.Web.UI.ControlCollection object.

CopyTo(Array, int)

Copies the child controls stored in the System.Web.UI.ControlCollection object to an Array object, beginning at the specified index location in the Array.

GetEnumerator() : IEnumerator

Retrieves an enumerator that can iterate through the System.Web.UI.ControlCollection object.

IndexOf(Control) : int

Retrieves the index of a specified System.Web.UI.Control object in the collection.

Remove(Control)

Removes the specified server control from the parent server control's System.Web.UI.ControlCollection object.

RemoveAt(int)

Removes a child control, at the specified index location, from the System.Web.UI.ControlCollection object.