135 references to Controls
System.Windows.Forms (7)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (4)
269
if (!
Controls
.Contains(RTLGrip))
271
if (
Controls
is ReadOnlyControlCollection controlCollection)
279
if (
Controls
.Contains(_rtlLayoutGrip))
281
if (
Controls
is ReadOnlyControlCollection controlCollection)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2525
Invalidate(
Controls
.Count > 0);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
797
=> (ReadOnlyControlCollection?)toolStrip?.
Controls
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1478
foreach (Control control in
Controls
)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
1707
next = toolStripItem.Owner.
Controls
[0];
System.Windows.Forms.Tests (127)
System\Windows\Forms\MenuStripTests.cs (3)
50
Assert.Empty(control.
Controls
);
51
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\StatusStripTests.cs (24)
50
Assert.Empty(control.
Controls
);
51
Assert.Same(control.
Controls
, control.
Controls
);
708
Assert.Empty(control.
Controls
);
714
Assert.Empty(control.
Controls
);
720
Assert.Empty(control.
Controls
);
745
Assert.Equal(expectedChildrenCallCount1, control.
Controls
.Count);
751
Assert.Equal(expectedChildrenCallCount1, control.
Controls
.Count);
757
Assert.Equal(expectedChildrenCallCount2, control.
Controls
.Count);
780
Assert.Empty(control.
Controls
);
786
Assert.Empty(control.
Controls
);
792
Assert.Empty(control.
Controls
);
812
Assert.Empty(control.
Controls
);
821
Assert.Empty(control.
Controls
);
830
Assert.Empty(control.
Controls
);
914
Assert.Empty(control.
Controls
);
929
Assert.Empty(control.
Controls
);
940
Assert.Empty(control.
Controls
);
967
Assert.Empty(control.
Controls
);
982
Assert.Empty(control.
Controls
);
993
Assert.Empty(control.
Controls
);
1035
Assert.Equal(expectedChildrenCallCount1, control.
Controls
.Count);
1046
Assert.Equal(expectedChildrenCallCount1, control.
Controls
.Count);
1187
Control grip = Assert.IsAssignableFrom<Control>(Assert.Single(control.
Controls
));
System\Windows\Forms\ToolStripControlHostTests.cs (45)
1402
Assert.Same(c, Assert.Single(parent.
Controls
));
1411
Assert.Same(c, Assert.Single(parent.
Controls
));
1413
Assert.Empty(otherParent.
Controls
);
1421
Assert.Empty(parent.
Controls
);
1423
Assert.Same(c, Assert.Single(otherParent.
Controls
));
1430
Assert.Empty(parent.
Controls
);
1433
Assert.Empty(otherParent.
Controls
);
1441
Assert.Empty(parent.
Controls
);
1443
Assert.Empty(otherParent.
Controls
);
1445
Assert.Same(c, Assert.Single(statusParent.
Controls
));
1471
Assert.Empty(owner.
Controls
);
1473
Assert.Same(c, Assert.Single(parent.
Controls
));
1482
Assert.Empty(owner.
Controls
);
1484
Assert.Same(c, Assert.Single(parent.
Controls
));
1486
Assert.Empty(otherParent.
Controls
);
1494
Assert.Empty(owner.
Controls
);
1496
Assert.Empty(parent.
Controls
);
1498
Assert.Same(c, Assert.Single(otherParent.
Controls
));
1506
Assert.Empty(owner.
Controls
);
1507
Assert.Empty(parent.
Controls
);
1510
Assert.Same(c, Assert.Single(otherParent.
Controls
));
1518
Assert.Empty(owner.
Controls
);
1520
Assert.Empty(parent.
Controls
);
1522
Assert.Empty(otherParent.
Controls
);
1524
Assert.Same(c, Assert.Single(statusParent.
Controls
));
1541
Assert.Empty(parent.
Controls
);
3090
Assert.Empty(owner.
Controls
);
3116
Assert.Empty(parent.
Controls
);
3125
Assert.Empty(parent.
Controls
);
3127
Assert.Empty(otherParent.
Controls
);
3136
Assert.Empty(parent.
Controls
);
3138
Assert.Empty(otherParent.
Controls
);
3147
Assert.Empty(parent.
Controls
);
3149
Assert.Empty(otherParent.
Controls
);
3158
Assert.Empty(parent.
Controls
);
3160
Assert.Empty(otherParent.
Controls
);
3189
Assert.Empty(parent.
Controls
);
3199
Assert.Empty(parent.
Controls
);
3201
Assert.Empty(otherParent.
Controls
);
3211
Assert.Empty(parent.
Controls
);
3213
Assert.Empty(otherParent.
Controls
);
3223
Assert.Empty(parent.
Controls
);
3225
Assert.Empty(otherParent.
Controls
);
3235
Assert.Empty(parent.
Controls
);
3237
Assert.Empty(otherParent.
Controls
);
System\Windows\Forms\ToolStripDropDownTests.cs (30)
54
Assert.Empty(control.
Controls
);
55
Assert.Same(control.
Controls
, control.
Controls
);
3046
Assert.Empty(control.
Controls
);
3062
Assert.Empty(control.
Controls
);
3074
Assert.Empty(control.
Controls
);
3102
Assert.Empty(control.
Controls
);
3119
Assert.Empty(control.
Controls
);
3132
Assert.Empty(control.
Controls
);
3159
Assert.Empty(control.
Controls
);
3175
Assert.Empty(control.
Controls
);
3187
Assert.Empty(control.
Controls
);
3219
Assert.Empty(control.
Controls
);
3239
Assert.Empty(control.
Controls
);
3259
Assert.Empty(control.
Controls
);
3290
Assert.Empty(control.
Controls
);
3306
Assert.Empty(control.
Controls
);
3318
Assert.Empty(control.
Controls
);
3345
Assert.Empty(control.
Controls
);
3356
Assert.Empty(control.
Controls
);
3383
Assert.Empty(control.
Controls
);
3400
Assert.Empty(control.
Controls
);
3413
Assert.Empty(control.
Controls
);
3446
Assert.Empty(control.
Controls
);
3459
Assert.Empty(control.
Controls
);
3492
Assert.Empty(control.
Controls
);
3512
Assert.Empty(control.
Controls
);
3532
Assert.Empty(control.
Controls
);
3581
Assert.Empty(control.
Controls
);
3600
Assert.Empty(control.
Controls
);
System\Windows\Forms\ToolStripTests.cs (25)
54
Assert.Empty(control.
Controls
);
55
Assert.Same(control.
Controls
, control.
Controls
);
212
Assert.Empty(control.
Controls
);
213
Assert.Same(control.
Controls
, control.
Controls
);
4364
Assert.Empty(control.
Controls
);
4380
Assert.Empty(control.
Controls
);
4392
Assert.Empty(control.
Controls
);
4418
Assert.Empty(control.
Controls
);
4434
Assert.Empty(control.
Controls
);
4446
Assert.Empty(control.
Controls
);
4478
Assert.Empty(control.
Controls
);
4498
Assert.Empty(control.
Controls
);
4518
Assert.Empty(control.
Controls
);
4549
Assert.Empty(control.
Controls
);
4565
Assert.Empty(control.
Controls
);
4577
Assert.Empty(control.
Controls
);
4604
Assert.Empty(control.
Controls
);
4615
Assert.Empty(control.
Controls
);
4646
Assert.Empty(control.
Controls
);
4666
Assert.Empty(control.
Controls
);
4686
Assert.Empty(control.
Controls
);
4735
Assert.Empty(control.
Controls
);
4754
Assert.Empty(control.
Controls
);