135 references to Controls
System.Windows.Forms (7)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (4)
272
if (!
Controls
.Contains(RTLGrip))
274
if (
Controls
is ReadOnlyControlCollection controlCollection)
282
if (
Controls
.Contains(_rtlLayoutGrip))
284
if (
Controls
is ReadOnlyControlCollection controlCollection)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2526
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)
48
Assert.Empty(control.
Controls
);
49
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\StatusStripTests.cs (24)
48
Assert.Empty(control.
Controls
);
49
Assert.Same(control.
Controls
, control.
Controls
);
706
Assert.Empty(control.
Controls
);
712
Assert.Empty(control.
Controls
);
718
Assert.Empty(control.
Controls
);
743
Assert.Equal(expectedChildrenCallCount1, control.
Controls
.Count);
749
Assert.Equal(expectedChildrenCallCount1, control.
Controls
.Count);
755
Assert.Equal(expectedChildrenCallCount2, control.
Controls
.Count);
778
Assert.Empty(control.
Controls
);
784
Assert.Empty(control.
Controls
);
790
Assert.Empty(control.
Controls
);
810
Assert.Empty(control.
Controls
);
819
Assert.Empty(control.
Controls
);
828
Assert.Empty(control.
Controls
);
912
Assert.Empty(control.
Controls
);
927
Assert.Empty(control.
Controls
);
938
Assert.Empty(control.
Controls
);
965
Assert.Empty(control.
Controls
);
980
Assert.Empty(control.
Controls
);
991
Assert.Empty(control.
Controls
);
1033
Assert.Equal(expectedChildrenCallCount1, control.
Controls
.Count);
1044
Assert.Equal(expectedChildrenCallCount1, control.
Controls
.Count);
1185
Control grip = Assert.IsAssignableFrom<Control>(Assert.Single(control.
Controls
));
System\Windows\Forms\ToolStripControlHostTests.cs (45)
1400
Assert.Same(c, Assert.Single(parent.
Controls
));
1409
Assert.Same(c, Assert.Single(parent.
Controls
));
1411
Assert.Empty(otherParent.
Controls
);
1419
Assert.Empty(parent.
Controls
);
1421
Assert.Same(c, Assert.Single(otherParent.
Controls
));
1428
Assert.Empty(parent.
Controls
);
1431
Assert.Empty(otherParent.
Controls
);
1439
Assert.Empty(parent.
Controls
);
1441
Assert.Empty(otherParent.
Controls
);
1443
Assert.Same(c, Assert.Single(statusParent.
Controls
));
1469
Assert.Empty(owner.
Controls
);
1471
Assert.Same(c, Assert.Single(parent.
Controls
));
1480
Assert.Empty(owner.
Controls
);
1482
Assert.Same(c, Assert.Single(parent.
Controls
));
1484
Assert.Empty(otherParent.
Controls
);
1492
Assert.Empty(owner.
Controls
);
1494
Assert.Empty(parent.
Controls
);
1496
Assert.Same(c, Assert.Single(otherParent.
Controls
));
1504
Assert.Empty(owner.
Controls
);
1505
Assert.Empty(parent.
Controls
);
1508
Assert.Same(c, Assert.Single(otherParent.
Controls
));
1516
Assert.Empty(owner.
Controls
);
1518
Assert.Empty(parent.
Controls
);
1520
Assert.Empty(otherParent.
Controls
);
1522
Assert.Same(c, Assert.Single(statusParent.
Controls
));
1539
Assert.Empty(parent.
Controls
);
3088
Assert.Empty(owner.
Controls
);
3114
Assert.Empty(parent.
Controls
);
3123
Assert.Empty(parent.
Controls
);
3125
Assert.Empty(otherParent.
Controls
);
3134
Assert.Empty(parent.
Controls
);
3136
Assert.Empty(otherParent.
Controls
);
3145
Assert.Empty(parent.
Controls
);
3147
Assert.Empty(otherParent.
Controls
);
3156
Assert.Empty(parent.
Controls
);
3158
Assert.Empty(otherParent.
Controls
);
3187
Assert.Empty(parent.
Controls
);
3197
Assert.Empty(parent.
Controls
);
3199
Assert.Empty(otherParent.
Controls
);
3209
Assert.Empty(parent.
Controls
);
3211
Assert.Empty(otherParent.
Controls
);
3221
Assert.Empty(parent.
Controls
);
3223
Assert.Empty(otherParent.
Controls
);
3233
Assert.Empty(parent.
Controls
);
3235
Assert.Empty(otherParent.
Controls
);
System\Windows\Forms\ToolStripDropDownTests.cs (30)
52
Assert.Empty(control.
Controls
);
53
Assert.Same(control.
Controls
, control.
Controls
);
3044
Assert.Empty(control.
Controls
);
3060
Assert.Empty(control.
Controls
);
3072
Assert.Empty(control.
Controls
);
3100
Assert.Empty(control.
Controls
);
3117
Assert.Empty(control.
Controls
);
3130
Assert.Empty(control.
Controls
);
3157
Assert.Empty(control.
Controls
);
3173
Assert.Empty(control.
Controls
);
3185
Assert.Empty(control.
Controls
);
3217
Assert.Empty(control.
Controls
);
3237
Assert.Empty(control.
Controls
);
3257
Assert.Empty(control.
Controls
);
3288
Assert.Empty(control.
Controls
);
3304
Assert.Empty(control.
Controls
);
3316
Assert.Empty(control.
Controls
);
3343
Assert.Empty(control.
Controls
);
3354
Assert.Empty(control.
Controls
);
3381
Assert.Empty(control.
Controls
);
3398
Assert.Empty(control.
Controls
);
3411
Assert.Empty(control.
Controls
);
3444
Assert.Empty(control.
Controls
);
3457
Assert.Empty(control.
Controls
);
3490
Assert.Empty(control.
Controls
);
3510
Assert.Empty(control.
Controls
);
3530
Assert.Empty(control.
Controls
);
3579
Assert.Empty(control.
Controls
);
3598
Assert.Empty(control.
Controls
);
System\Windows\Forms\ToolStripTests.cs (25)
52
Assert.Empty(control.
Controls
);
53
Assert.Same(control.
Controls
, control.
Controls
);
210
Assert.Empty(control.
Controls
);
211
Assert.Same(control.
Controls
, control.
Controls
);
4362
Assert.Empty(control.
Controls
);
4378
Assert.Empty(control.
Controls
);
4390
Assert.Empty(control.
Controls
);
4416
Assert.Empty(control.
Controls
);
4432
Assert.Empty(control.
Controls
);
4444
Assert.Empty(control.
Controls
);
4476
Assert.Empty(control.
Controls
);
4496
Assert.Empty(control.
Controls
);
4516
Assert.Empty(control.
Controls
);
4547
Assert.Empty(control.
Controls
);
4563
Assert.Empty(control.
Controls
);
4575
Assert.Empty(control.
Controls
);
4602
Assert.Empty(control.
Controls
);
4613
Assert.Empty(control.
Controls
);
4644
Assert.Empty(control.
Controls
);
4664
Assert.Empty(control.
Controls
);
4684
Assert.Empty(control.
Controls
);
4733
Assert.Empty(control.
Controls
);
4752
Assert.Empty(control.
Controls
);