Property Children
Children
Gets the collection of child controls contained within the control.
[Browsable(false)]
public virtual Control.ControlCollection Children { get; }
Property Value
- Control.ControlCollection
A Collection<T> representing the collection of controls contained within the control.
Remarks
A Control can act as a parent to a collection of controls. For example, when several controls are added to a Window, each of the controls is a member of the Collection<T> assigned to the Children property of the window, which is derived from the Control class.
You can manipulate the controls in the Collection<T> assigned to the Children property by using the methods available in the Collection<T> class.
When adding several controls to a parent control, it is recommended that you call the SuspendLayout() method before initializing the controls to be added. After adding the controls to the parent control, call the ResumeLayout(bool) method. Doing so will increase the performance of applications with many controls.