System.Web.UI.ControlCollection Members

The members of System.Web.UI.ControlCollection are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.UI.ControlCollection class for the specified parent server control.

Public Properties

[read-only]
Countint.

Gets the number of server controls in the System.Web.UI.ControlCollection object for the specified ASP.NET server control.

[read-only]
IsReadOnlybool.

Gets a value indicating whether the System.Web.UI.ControlCollection object is read-only.

[read-only]
IsSynchronizedbool.

Gets a value indicating whether the System.Web.UI.ControlCollection object is synchronized.

[read-only]
default property
Item(int)Control. Documentation for this section has not yet been entered.
[read-only]
SyncRootobject.

Gets an object that can be used to synchronize access to the collection of controls.

Protected Properties

[read-only]
OwnerControl.

Gets the ASP.NET server control to which the System.Web.UI.ControlCollection object belongs.

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.