Export (0) Print
Expand All

Control.ControlCollection Methods

The Control.ControlCollection type exposes the following members.

  Name Description
Public method Add Adds the specified control to the control collection.
Public method AddRange Adds an array of control objects to the collection.
Public method Clear Removes all controls from the collection.
Public method Contains Determines whether the specified control is a member of the collection.
Public method ContainsKey Determines whether the Control.ControlCollection contains an item with the specified key.
Public method 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.)
Public method Equals Determines whether two ArrangedElementCollection instances are equal. (Inherited from ArrangedElementCollection.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find Searches for controls by their Name property and builds an array of all the controls that match.
Public method GetChildIndex(Control) Retrieves the index of the specified child control within the control collection.
Public method 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.
Public method GetEnumerator Retrieves a reference to an enumerator object that is used to iterate over a Control.ControlCollection. (Overrides ArrangedElementCollection.GetEnumerator().)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ArrangedElementCollection.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Retrieves the index of the specified control in the control collection.
Public method IndexOfKey Retrieves the index of the first occurrence of the specified item within the collection.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the specified control from the control collection.
Public method RemoveAt Removes a control from the control collection at the specified indexed location.
Public method RemoveByKey Removes the child control with the specified key.
Public method SetChildIndex Sets the index of the specified child control in the collection to the specified index value.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Public Extension Method AsParallel() Overloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsParallel() Overloaded. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable() Overloaded. Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method AsQueryable() Overloaded. (Defined by Queryable.)
Public Extension Method Cast<TResult>() Overloaded. Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method Cast<TResult>() Overloaded. (Defined by Enumerable.)
Public Extension Method OfType<TResult>() Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult>() Overloaded. (Defined by Enumerable.)
Top

  Name Description
Explicit interface implemetation Private method ICloneable.Clone Infrastructure. For a description of this member, see ICloneable.Clone.
Explicit interface implemetation Private method IList.Add Infrastructure. For a description of this member, see IList.Add.
Explicit interface implemetation Private method IList.Clear For a description of this member, see the IList.Clear method. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private method IList.Contains For a description of this member, see the IList.Contains method. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private method IList.IndexOf For a description of this member, see the IList.IndexOf method. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private method IList.Insert For a description of this member, see the IList.Insert method. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private method IList.Remove Infrastructure. For a description of this member, see IList.Remove.
Explicit interface implemetation Private method IList.RemoveAt For a description of this member, see the IList.RemoveAt method. (Inherited from ArrangedElementCollection.)
Top
Show:
© 2014 Microsoft