8 types derived from ControlCollection
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridView.ControlCollection.cs (1)
10public class DataGridViewControlCollection : ControlCollection
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
10public new class ControlCollection : Control.ControlCollection
System\Windows\Forms\Controls\TabControl\TabPage.TabPageControlCollection.cs (1)
11public class TabPageControlCollection : ControlCollection
System\Windows\Forms\Form.ControlCollection.cs (1)
11public new class ControlCollection : Control.ControlCollection
System\Windows\Forms\Internal\ReadOnlyControlCollection.cs (1)
11internal class ReadOnlyControlCollection : Control.ControlCollection
System\Windows\Forms\MDI\MDIClient.ControlCollection.cs (1)
11public new class ControlCollection : Control.ControlCollection
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutControlCollection.cs (1)
14public class TableLayoutControlCollection : Control.ControlCollection
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
16internal class DesignerControlCollection : Control.ControlCollection, IList
64 instantiations of ControlCollection
System.Windows.Forms (1)
System\Windows\Forms\Control.cs (1)
4439return new ControlCollection(this);
System.Windows.Forms.Tests (63)
System\Windows\Forms\ControlTests.ControlCollection.cs (61)
18Control.ControlCollection collection = new(owner); 28Assert.Throws<ArgumentNullException>("owner", () => new Control.ControlCollection(null)); 37var collection = new Control.ControlCollection(owner); 392var collection = new Control.ControlCollection(owner); 545var collection = new Control.ControlCollection(owner); 588var collection = new Control.ControlCollection(owner); 643var collection = new Control.ControlCollection(owner); 793var collection = new Control.ControlCollection(owner); 946var collection = new Control.ControlCollection(owner); 1019var collection = new Control.ControlCollection(owner); 1114var collection = new Control.ControlCollection(owner); 1133var collection = new Control.ControlCollection(owner); 1157var collection = new Control.ControlCollection(owner); 1170var collection = new Control.ControlCollection(owner); 1182var collection = new Control.ControlCollection(owner); 1198var collection = new Control.ControlCollection(owner); 1278var collection = new Control.ControlCollection(owner); 1289var collection = new Control.ControlCollection(owner) 1339var sourceCollection = new Control.ControlCollection(owner); 1379var collection = new Control.ControlCollection(owner); 1416var collection = new Control.ControlCollection(owner) 1515var collection = new Control.ControlCollection(owner); 1524var collection = new Control.ControlCollection(owner); 1538var collection = new Control.ControlCollection(owner); 1552var collection = new Control.ControlCollection(owner); 1575var collection = new Control.ControlCollection(owner); 1589var collection = new Control.ControlCollection(owner); 1613var collection = new Control.ControlCollection(owner) 1650var collection = new Control.ControlCollection(owner); 1675var collection = new Control.ControlCollection(owner) 1708var collection = new Control.ControlCollection(owner) 1745var collection = new Control.ControlCollection(owner); 1782var collection = new Control.ControlCollection(owner) 1815var collection = new Control.ControlCollection(owner) 1851var collection = new Control.ControlCollection(owner) 1872var collection = new Control.ControlCollection(owner) 1891var collection = new Control.ControlCollection(owner); 1903var collection = new Control.ControlCollection(owner) 1916var collection = new Control.ControlCollection(owner) 1978var collection = new Control.ControlCollection(owner) 2214var collection1 = new Control.ControlCollection(owner1); 2215var collection2 = new Control.ControlCollection(owner2); 2239var collection = new Control.ControlCollection(owner) 2285var collection = new Control.ControlCollection(owner) 2343var collection = new Control.ControlCollection(owner) 2487var collection = new Control.ControlCollection(owner) 2619var collection = new Control.ControlCollection(owner) 2683var collection = new Control.ControlCollection(owner) 2770var collection = new Control.ControlCollection(owner) 2848var collection = new Control.ControlCollection(owner) 2904var collection = new Control.ControlCollection(owner); 2916var collection = new Control.ControlCollection(owner) 2941var collection = new Control.ControlCollection(owner) 3017var collection = new Control.ControlCollection(owner) 3039var collection = new Control.ControlCollection(owner) 3107var collection = new Control.ControlCollection(owner) 3412var collection = new Control.ControlCollection(owner); 3421var collection = new Control.ControlCollection(owner) 3506IList collection = new Control.ControlCollection(owner); 3517IList collection = new Control.ControlCollection(owner) 3577IList collection = new Control.ControlCollection(owner);
System\Windows\Forms\ControlTests.Properties.cs (1)
3647yield return new object[] { new Control.ControlCollection(new Control()) };
System\Windows\Forms\StatusStripTests.cs (1)
1257protected override ControlCollection CreateControlsInstance() => new(this);
145 references to ControlCollection
System.Windows.Forms (36)
System\Windows\Forms\Control.ControlCollection.ControlCollectionEnumerator.cs (2)
17private readonly ControlCollection _controls; 21public ControlCollectionEnumerator(ControlCollection controls)
System\Windows\Forms\Control.ControlCollection.cs (2)
159ControlCollection ccOther = Owner.CreateControlsInstance(); 185private static void FindInternal(string key, bool searchAllChildren, ControlCollection controlsToLookIn, List<Control> foundControls)
System\Windows\Forms\Control.cs (6)
177internal ControlCollection? ChildControls { get; private set; } 1269public ControlCollection Controls => ChildControls ??= CreateControlsInstance(); 4437protected virtual ControlCollection CreateControlsInstance() 5506ControlCollection? parentChildren = p?.ChildControls; 5565ControlCollection? siblings = parent.ChildControls ?? throw new InvalidOperationException( 5638ControlCollection? children = ctl.ChildControls;
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
412ControlCollection children = parent.Controls; 435ControlCollection children = parent.Controls;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5403protected override ControlCollection CreateControlsInstance()
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
541public new ControlCollection Controls
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
647ControlCollection children = parent.Controls; 721ControlCollection children = parent.Controls;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
952protected override Control.ControlCollection CreateControlsInstance()
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
144protected override ControlCollection CreateControlsInstance() => new TabPageControlCollection(this);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
469public new ControlCollection Controls 4674protected override ControlCollection CreateControlsInstance()
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (2)
345public new ControlCollection Controls 354protected override ControlCollection CreateControlsInstance()
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
986private static MenuStrip? GetFirstMenuStripRecursive(Control.ControlCollection controlsToLookIn)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
385protected override ControlCollection CreateControlsInstance() => new ToolStripPanelControlCollection(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (3)
232private void FindControls<T>(bool searchAllChildren, Control.ControlCollection controlsToLookIn, List<T> foundControls) 287Control.ControlCollection controlsCollection = start.Controls; 301Control.ControlCollection controlsCollection = start.Controls;
System\Windows\Forms\Form.cs (1)
3244protected override Control.ControlCollection CreateControlsInstance()
System\Windows\Forms\Layout\Containers\ContainerControl.cs (3)
1034ControlCollection controlsCollection = start.Controls; 1055ControlCollection controlsCollection = start.Controls; 1970ControlCollection children = Controls;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
277public new ControlCollection Controls 2422protected override ControlCollection CreateControlsInstance()
System\Windows\Forms\Layout\DefaultLayout.cs (1)
698ControlCollection controls = control.Controls;
System\Windows\Forms\MDI\MDIClient.cs (1)
133protected override Control.ControlCollection CreateControlsInstance()
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
167protected override ControlCollection CreateControlsInstance() => new TableLayoutControlCollection(this);
System.Windows.Forms.Design (14)
System\ComponentModel\Design\DesignerActionPanel.Line.cs (1)
51internal void RemoveControls(ControlCollection controls)
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (1)
106protected override ControlCollection SelectionOptions => Controls;
System\Drawing\Design\SelectionPanelBase.cs (1)
25protected abstract ControlCollection SelectionOptions { get; }
System\Windows\Forms\Design\ComponentTray.cs (1)
221ControlCollection children = Controls;
System\Windows\Forms\Design\ControlCommandSet.cs (4)
1509Control.ControlCollection ctlControls = ctl.Controls; 1541Control.ControlCollection parentControls = p.Controls; 1609Control.ControlCollection parentControls = p.Controls; 1677Control.ControlCollection ctlControls = ctl.Controls;
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
18private readonly Control.ControlCollection _realCollection;
System\Windows\Forms\Design\DockEditor.DockUI.cs (1)
169protected override ControlCollection SelectionOptions => _container.Controls;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
170var children = Control.Controls; 598var children = Control.Controls;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
333Control.ControlCollection parentControls = p.Controls; 388Control.ControlCollection parentControls = p.Controls;
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
88var other = _control.Controls;
System.Windows.Forms.Tests (94)
System\Windows\Forms\ControlTests.ControlCollection.cs (76)
18Control.ControlCollection collection = new(owner); 37var collection = new Control.ControlCollection(owner); 111Control.ControlCollection collection = owner.Controls; 188Control.ControlCollection collection1 = owner1.Controls; 189Control.ControlCollection collection2 = owner2.Controls; 225Control.ControlCollection collection = owner.Controls; 280Control.ControlCollection collection = owner.Controls; 334Control.ControlCollection collection = owner.Controls; 363Control.ControlCollection collection = owner.Controls; 392var collection = new Control.ControlCollection(owner); 431Control.ControlCollection collection = owner.Controls; 468Control.ControlCollection collection = owner.Controls; 545var collection = new Control.ControlCollection(owner); 588var collection = new Control.ControlCollection(owner); 643var collection = new Control.ControlCollection(owner); 793var collection = new Control.ControlCollection(owner); 946var collection = new Control.ControlCollection(owner); 1019var collection = new Control.ControlCollection(owner); 1114var collection = new Control.ControlCollection(owner); 1133var collection = new Control.ControlCollection(owner); 1157var collection = new Control.ControlCollection(owner); 1170var collection = new Control.ControlCollection(owner); 1182var collection = new Control.ControlCollection(owner); 1198var collection = new Control.ControlCollection(owner); 1209Control.ControlCollection collection = owner.Controls; 1278var collection = new Control.ControlCollection(owner); 1289var collection = new Control.ControlCollection(owner) 1339var sourceCollection = new Control.ControlCollection(owner); 1354var collection = Assert.IsType<Control.ControlCollection>(iCloneable.Clone()); 1379var collection = new Control.ControlCollection(owner); 1416var collection = new Control.ControlCollection(owner) 1463Control.ControlCollection collection = owner.Controls; 1501Control.ControlCollection collection = owner.Controls; 1515var collection = new Control.ControlCollection(owner); 1524var collection = new Control.ControlCollection(owner); 1538var collection = new Control.ControlCollection(owner); 1552var collection = new Control.ControlCollection(owner); 1575var collection = new Control.ControlCollection(owner); 1589var collection = new Control.ControlCollection(owner); 1613var collection = new Control.ControlCollection(owner) 1650var collection = new Control.ControlCollection(owner); 1675var collection = new Control.ControlCollection(owner) 1708var collection = new Control.ControlCollection(owner) 1745var collection = new Control.ControlCollection(owner); 1782var collection = new Control.ControlCollection(owner) 1815var collection = new Control.ControlCollection(owner) 1851var collection = new Control.ControlCollection(owner) 1872var collection = new Control.ControlCollection(owner) 1891var collection = new Control.ControlCollection(owner); 1903var collection = new Control.ControlCollection(owner) 1916var collection = new Control.ControlCollection(owner) 1978var collection = new Control.ControlCollection(owner) 2045Control.ControlCollection collection = owner.Controls; 2121Control.ControlCollection collection = owner.Controls; 2214var collection1 = new Control.ControlCollection(owner1); 2215var collection2 = new Control.ControlCollection(owner2); 2239var collection = new Control.ControlCollection(owner) 2285var collection = new Control.ControlCollection(owner) 2343var collection = new Control.ControlCollection(owner) 2487var collection = new Control.ControlCollection(owner) 2619var collection = new Control.ControlCollection(owner) 2683var collection = new Control.ControlCollection(owner) 2770var collection = new Control.ControlCollection(owner) 2848var collection = new Control.ControlCollection(owner) 2904var collection = new Control.ControlCollection(owner); 2916var collection = new Control.ControlCollection(owner) 2941var collection = new Control.ControlCollection(owner) 3017var collection = new Control.ControlCollection(owner) 3039var collection = new Control.ControlCollection(owner) 3107var collection = new Control.ControlCollection(owner) 3162Control.ControlCollection collection = owner.Controls; 3241Control.ControlCollection collection = owner.Controls; 3335Control.ControlCollection collection = owner.Controls; 3412var collection = new Control.ControlCollection(owner); 3421var collection = new Control.ControlCollection(owner)
System\Windows\Forms\ControlTests.cs (1)
1204public new ControlCollection CreateControlsInstance() => base.CreateControlsInstance();
System\Windows\Forms\ControlTests.Methods.cs (2)
612Control.ControlCollection controls = Assert.IsType<Control.ControlCollection>(control.CreateControlsInstance());
System\Windows\Forms\ControlTests.Properties.cs (3)
3652public void Control_Controls_GetCustomCreateControlsInstance_ReturnsExpected(Control.ControlCollection result) 3665public Control.ControlCollection CreateControlsResult { get; set; } 3667protected override Control.ControlCollection CreateControlsInstance() => CreateControlsResult;
System\Windows\Forms\StatusStripTests.cs (1)
1257protected override ControlCollection CreateControlsInstance() => new(this);
System\Windows\Forms\TabControlTests.cs (2)
2994Control.ControlCollection controls = Assert.IsType<TabControl.ControlCollection>(control.CreateControlsInstance()); 5773public new Control.ControlCollection CreateControlsInstance() => base.CreateControlsInstance();
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2235public new ControlCollection CreateControlsInstance() => base.CreateControlsInstance();
System\Windows\Forms\TabPageTests.cs (2)
3744Control.ControlCollection controls = Assert.IsType<TabPage.TabPageControlCollection>(control.CreateControlsInstance()); 5299public new ControlCollection CreateControlsInstance() => base.CreateControlsInstance();
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5168public new ControlCollection CreateControlsInstance() => base.CreateControlsInstance();
System\Windows\Forms\ToolStripTests.cs (5)
4235Control.ControlCollection controls = Assert.IsAssignableFrom<Control.ControlCollection>(control.CreateControlsInstance()); 4259Control.ControlCollection controls = Assert.IsAssignableFrom<Control.ControlCollection>(control.CreateControlsInstance()); 7602public new ControlCollection CreateControlsInstance() => base.CreateControlsInstance();