Control.ControlCollection Methods
.NET Framework 4.5
The Control.ControlCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add | Adds the specified control to the control collection. |
|
AddRange | Adds an array of control objects to the collection. |
|
Clear | Removes all controls from the collection. |
|
Contains | Determines whether the specified control is a member of the collection. |
|
ContainsKey | Determines whether the Control.ControlCollection contains an item with the specified key. |
|
CopyTo | Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from ArrangedElementCollection.) |
|
Equals | Determines whether two ArrangedElementCollection instances are equal. (Inherited from ArrangedElementCollection.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
Find | Searches for controls by their Name property and builds an array of all the controls that match. |
|
GetChildIndex(Control) | Retrieves the index of the specified child control within the control collection. |
|
GetChildIndex(Control, Boolean) | Retrieves the index of the specified child control within the control collection, and optionally raises an exception if the specified control is not within the control collection. |
|
GetEnumerator | Retrieves a reference to an enumerator object that is used to iterate over a Control.ControlCollection. (Overrides ArrangedElementCollection.GetEnumerator().) |
|
GetHashCode | Returns the hash code for this instance. (Inherited from ArrangedElementCollection.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
IndexOf | Retrieves the index of the specified control in the control collection. |
|
IndexOfKey | Retrieves the index of the first occurrence of the specified item within the collection. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove | Removes the specified control from the control collection. |
|
RemoveAt | Removes a control from the control collection at the specified indexed location. |
|
RemoveByKey | Removes the child control with the specified key. |
|
SetChildIndex | Sets the index of the specified child control in the collection to the specified index value. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
ICloneable.Clone | Infrastructure. For a description of this member, see ICloneable.Clone. |
|
IList.Add | Infrastructure. For a description of this member, see IList.Add. |
|
IList.Clear | For a description of this member, see the IList.Clear method. (Inherited from ArrangedElementCollection.) |
|
IList.Contains | For a description of this member, see the IList.Contains method. (Inherited from ArrangedElementCollection.) |
|
IList.IndexOf | For a description of this member, see the IList.IndexOf method. (Inherited from ArrangedElementCollection.) |
|
IList.Insert | For a description of this member, see the IList.Insert method. (Inherited from ArrangedElementCollection.) |
|
IList.Remove | Infrastructure. For a description of this member, see IList.Remove. |
|
IList.RemoveAt | For a description of this member, see the IList.RemoveAt method. (Inherited from ArrangedElementCollection.) |