18 references to Contains
System.Windows.Forms (4)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
1072
Debug.Assert(dataGridView.EditingPanel.Controls.
Contains
(dataGridView.EditingControl));
1088
Debug.Assert(dataGridView.Controls.
Contains
(dataGridView.EditingPanel));
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
272
if (!Controls.
Contains
(RTLGrip))
282
if (Controls.
Contains
(_rtlLayoutGrip))
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
902
Control.Controls.
Contains
(_primaryDragControl))
System\Windows\Forms\Design\FormatControl.cs (2)
269
if (tableLayoutPanel1.Controls.
Contains
(dateTimeFormatsListBox))
286
if (tableLayoutPanel1.Controls.
Contains
(_customStringTextBox))
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2188
if (oldParent.Controls.
Contains
(newParent))
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1315
if (dragControl is not null && Table.Controls.
Contains
(dragControl))
System.Windows.Forms.Design.Tests (4)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (4)
129
_control.Controls.
Contains
(control).Should().BeFalse();
138
_control.Controls.
Contains
(control).Should().BeFalse();
164
_control.Controls.
Contains
(control).Should().BeTrue();
167
_control.Controls.
Contains
(control).Should().BeFalse();
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlTests.ControlCollection.cs (4)
1385
Assert.True(collection.
Contains
(child1));
1386
Assert.True(collection.
Contains
(child2));
1387
Assert.False(collection.
Contains
(new Control()));
1388
Assert.False(collection.
Contains
(null));
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
243
_propertyGrid.Controls.
Contains
(textBox).Should().BeTrue();