9 types derived from ControlCollection
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
BlazorWebView.cs (1)
316 private sealed class BlazorWebViewControlCollection : 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)
4438return new ControlCollection(this);
System.Windows.Forms.Tests (63)
System\Windows\Forms\ControlTests.ControlCollection.cs (61)
20Control.ControlCollection collection = new(owner); 30Assert.Throws<ArgumentNullException>("owner", () => new Control.ControlCollection(null)); 39var collection = new Control.ControlCollection(owner); 394var collection = new Control.ControlCollection(owner); 547var collection = new Control.ControlCollection(owner); 590var collection = new Control.ControlCollection(owner); 645var collection = new Control.ControlCollection(owner); 795var collection = new Control.ControlCollection(owner); 948var collection = new Control.ControlCollection(owner); 1021var collection = new Control.ControlCollection(owner); 1116var collection = new Control.ControlCollection(owner); 1135var collection = new Control.ControlCollection(owner); 1159var collection = new Control.ControlCollection(owner); 1172var collection = new Control.ControlCollection(owner); 1184var collection = new Control.ControlCollection(owner); 1200var collection = new Control.ControlCollection(owner); 1280var collection = new Control.ControlCollection(owner); 1291var collection = new Control.ControlCollection(owner) 1341var sourceCollection = new Control.ControlCollection(owner); 1381var collection = new Control.ControlCollection(owner); 1418var collection = new Control.ControlCollection(owner) 1517var collection = new Control.ControlCollection(owner); 1526var collection = new Control.ControlCollection(owner); 1540var collection = new Control.ControlCollection(owner); 1554var collection = new Control.ControlCollection(owner); 1577var collection = new Control.ControlCollection(owner); 1591var collection = new Control.ControlCollection(owner); 1615var collection = new Control.ControlCollection(owner) 1652var collection = new Control.ControlCollection(owner); 1677var collection = new Control.ControlCollection(owner) 1710var collection = new Control.ControlCollection(owner) 1747var collection = new Control.ControlCollection(owner); 1784var collection = new Control.ControlCollection(owner) 1817var collection = new Control.ControlCollection(owner) 1853var collection = new Control.ControlCollection(owner) 1874var collection = new Control.ControlCollection(owner) 1893var collection = new Control.ControlCollection(owner); 1905var collection = new Control.ControlCollection(owner) 1918var collection = new Control.ControlCollection(owner) 1980var collection = new Control.ControlCollection(owner) 2216var collection1 = new Control.ControlCollection(owner1); 2217var collection2 = new Control.ControlCollection(owner2); 2241var collection = new Control.ControlCollection(owner) 2287var collection = new Control.ControlCollection(owner) 2345var collection = new Control.ControlCollection(owner) 2489var collection = new Control.ControlCollection(owner) 2621var collection = new Control.ControlCollection(owner) 2685var collection = new Control.ControlCollection(owner) 2772var collection = new Control.ControlCollection(owner) 2850var collection = new Control.ControlCollection(owner) 2906var collection = new Control.ControlCollection(owner); 2918var collection = new Control.ControlCollection(owner) 2943var collection = new Control.ControlCollection(owner) 3019var collection = new Control.ControlCollection(owner) 3041var collection = new Control.ControlCollection(owner) 3109var collection = new Control.ControlCollection(owner) 3414var collection = new Control.ControlCollection(owner); 3423var collection = new Control.ControlCollection(owner) 3508IList collection = new Control.ControlCollection(owner); 3519IList collection = new Control.ControlCollection(owner) 3579IList collection = new Control.ControlCollection(owner);
System\Windows\Forms\ControlTests.Properties.cs (1)
3649yield return new object[] { new Control.ControlCollection(new Control()) };
System\Windows\Forms\StatusStripTests.cs (1)
1259protected override ControlCollection CreateControlsInstance() => new(this);
146 references to ControlCollection
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
BlazorWebView.cs (1)
290 protected override ControlCollection CreateControlsInstance()
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)
176internal ControlCollection? ChildControls { get; private set; } 1268public ControlCollection Controls => ChildControls ??= CreateControlsInstance(); 4436protected virtual ControlCollection CreateControlsInstance() 5540ControlCollection? parentChildren = p?.ChildControls; 5599ControlCollection? siblings = parent.ChildControls ?? throw new InvalidOperationException( 5672ControlCollection? 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)
5402protected 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)
467public new ControlCollection Controls 4673protected 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)
985private 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)
1033ControlCollection controlsCollection = start.Controls; 1054ControlCollection controlsCollection = start.Controls; 1969ControlCollection 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)
697ControlCollection 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)
86var other = _control.Controls;
System.Windows.Forms.Tests (94)
System\Windows\Forms\ControlTests.ControlCollection.cs (76)
20Control.ControlCollection collection = new(owner); 39var collection = new Control.ControlCollection(owner); 113Control.ControlCollection collection = owner.Controls; 190Control.ControlCollection collection1 = owner1.Controls; 191Control.ControlCollection collection2 = owner2.Controls; 227Control.ControlCollection collection = owner.Controls; 282Control.ControlCollection collection = owner.Controls; 336Control.ControlCollection collection = owner.Controls; 365Control.ControlCollection collection = owner.Controls; 394var collection = new Control.ControlCollection(owner); 433Control.ControlCollection collection = owner.Controls; 470Control.ControlCollection collection = owner.Controls; 547var collection = new Control.ControlCollection(owner); 590var collection = new Control.ControlCollection(owner); 645var collection = new Control.ControlCollection(owner); 795var collection = new Control.ControlCollection(owner); 948var collection = new Control.ControlCollection(owner); 1021var collection = new Control.ControlCollection(owner); 1116var collection = new Control.ControlCollection(owner); 1135var collection = new Control.ControlCollection(owner); 1159var collection = new Control.ControlCollection(owner); 1172var collection = new Control.ControlCollection(owner); 1184var collection = new Control.ControlCollection(owner); 1200var collection = new Control.ControlCollection(owner); 1211Control.ControlCollection collection = owner.Controls; 1280var collection = new Control.ControlCollection(owner); 1291var collection = new Control.ControlCollection(owner) 1341var sourceCollection = new Control.ControlCollection(owner); 1356var collection = Assert.IsType<Control.ControlCollection>(iCloneable.Clone()); 1381var collection = new Control.ControlCollection(owner); 1418var collection = new Control.ControlCollection(owner) 1465Control.ControlCollection collection = owner.Controls; 1503Control.ControlCollection collection = owner.Controls; 1517var collection = new Control.ControlCollection(owner); 1526var collection = new Control.ControlCollection(owner); 1540var collection = new Control.ControlCollection(owner); 1554var collection = new Control.ControlCollection(owner); 1577var collection = new Control.ControlCollection(owner); 1591var collection = new Control.ControlCollection(owner); 1615var collection = new Control.ControlCollection(owner) 1652var collection = new Control.ControlCollection(owner); 1677var collection = new Control.ControlCollection(owner) 1710var collection = new Control.ControlCollection(owner) 1747var collection = new Control.ControlCollection(owner); 1784var collection = new Control.ControlCollection(owner) 1817var collection = new Control.ControlCollection(owner) 1853var collection = new Control.ControlCollection(owner) 1874var collection = new Control.ControlCollection(owner) 1893var collection = new Control.ControlCollection(owner); 1905var collection = new Control.ControlCollection(owner) 1918var collection = new Control.ControlCollection(owner) 1980var collection = new Control.ControlCollection(owner) 2047Control.ControlCollection collection = owner.Controls; 2123Control.ControlCollection collection = owner.Controls; 2216var collection1 = new Control.ControlCollection(owner1); 2217var collection2 = new Control.ControlCollection(owner2); 2241var collection = new Control.ControlCollection(owner) 2287var collection = new Control.ControlCollection(owner) 2345var collection = new Control.ControlCollection(owner) 2489var collection = new Control.ControlCollection(owner) 2621var collection = new Control.ControlCollection(owner) 2685var collection = new Control.ControlCollection(owner) 2772var collection = new Control.ControlCollection(owner) 2850var collection = new Control.ControlCollection(owner) 2906var collection = new Control.ControlCollection(owner); 2918var collection = new Control.ControlCollection(owner) 2943var collection = new Control.ControlCollection(owner) 3019var collection = new Control.ControlCollection(owner) 3041var collection = new Control.ControlCollection(owner) 3109var collection = new Control.ControlCollection(owner) 3164Control.ControlCollection collection = owner.Controls; 3243Control.ControlCollection collection = owner.Controls; 3337Control.ControlCollection collection = owner.Controls; 3414var collection = new Control.ControlCollection(owner); 3423var collection = new Control.ControlCollection(owner)
System\Windows\Forms\ControlTests.cs (1)
1206public new ControlCollection CreateControlsInstance() => base.CreateControlsInstance();
System\Windows\Forms\ControlTests.Methods.cs (2)
613Control.ControlCollection controls = Assert.IsType<Control.ControlCollection>(control.CreateControlsInstance());
System\Windows\Forms\ControlTests.Properties.cs (3)
3654public void Control_Controls_GetCustomCreateControlsInstance_ReturnsExpected(Control.ControlCollection result) 3667public ControlCollection CreateControlsResult { get; set; } 3669protected override ControlCollection CreateControlsInstance() => CreateControlsResult;
System\Windows\Forms\StatusStripTests.cs (1)
1259protected override ControlCollection CreateControlsInstance() => new(this);
System\Windows\Forms\TabControlTests.cs (2)
2996Control.ControlCollection controls = Assert.IsType<TabControl.ControlCollection>(control.CreateControlsInstance()); 5802public new Control.ControlCollection CreateControlsInstance() => base.CreateControlsInstance();
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2237public new ControlCollection CreateControlsInstance() => base.CreateControlsInstance();
System\Windows\Forms\TabPageTests.cs (2)
3746Control.ControlCollection controls = Assert.IsType<TabPage.TabPageControlCollection>(control.CreateControlsInstance()); 5301public new ControlCollection CreateControlsInstance() => base.CreateControlsInstance();
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5170public new ControlCollection CreateControlsInstance() => base.CreateControlsInstance();
System\Windows\Forms\ToolStripTests.cs (5)
4237Control.ControlCollection controls = Assert.IsAssignableFrom<Control.ControlCollection>(control.CreateControlsInstance()); 4261Control.ControlCollection controls = Assert.IsAssignableFrom<Control.ControlCollection>(control.CreateControlsInstance()); 7573public new ControlCollection CreateControlsInstance() => base.CreateControlsInstance();