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