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