Name
ControlCollection
Synopsis
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 : Implements ICollection, IEnumerable ' Public Constructors Public Sub New(ByVal owner As Control) ' Public Instance Properties Public ReadOnly Property Count As Integer Implements ICollection.Count Public ReadOnly Property IsReadOnly As Boolean Public ReadOnly Property IsSynchronized As Boolean Implements ICollection.IsSynchronized Overridable Public Default ReadOnly Property Item( ByVal index As Integer) As Control Public ReadOnly Property SyncRoot As Object Implements ICollection.SyncRoot ' Protected Instance Properties Protected Property Owner As Control ' Public Instance Methods Overridable Public Sub Add(ByVal child As Control) Overridable Public Sub AddAt(ByVal index As Integer, ByVal child As Control) Overridable Public Sub Clear() Overridable Public Function Contains( ByVal c As Control) As Boolean Public Sub CopyTo(ByVal array As Array, ByVal index As Integer) Implements ICollection.CopyTo Public Function GetEnumerator( ) As IEnumerator Implements IEnumerable.GetEnumerator Overridable Public Function IndexOf( ByVal value As Control) As Integer Overridable Public Sub Remove(ByVal value As Control) Overridable Public Sub RemoveAt(ByVal index As Integer) End Class
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.