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