Name
Control.ControlCollection
Synopsis
This class represents the collection of child
Controls
in a Control
object.
public class Control.ControlCollection : IList, ICollection, IEnumerable, ICloneable { // Public Constructors public Control.ControlCollection(Control owner); // Public Instance Properties public int Count{get; } // implements ICollection public bool IsReadOnly{get; } // implements IList public virtual Control this{get; } // Public Instance Methods public virtual void Add(Control value); public virtual void AddRange(Control[ ] controls); public virtual void Clear(); // implements IList public bool Contains(Control control); public void CopyTo(Array dest, int index); // implements ICollection public override bool Equals(object other); // overrides object public int GetChildIndex(Control child); public int GetChildIndex(Control child, bool throwException); public IEnumerator GetEnumerator(); // implements IEnumerable public override int GetHashCode(); // overrides object public int IndexOf(Control control); public virtual void Remove(Control value); public void RemoveAt(int index); // implements IList public void SetChildIndex(Control child, int newIndex); }
Get .NET Windows Forms 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.