18 references to Contains
System.Windows.Forms (4)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
1072Debug.Assert(dataGridView.EditingPanel.Controls.Contains(dataGridView.EditingControl)); 1088Debug.Assert(dataGridView.Controls.Contains(dataGridView.EditingPanel));
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
272if (!Controls.Contains(RTLGrip)) 282if (Controls.Contains(_rtlLayoutGrip))
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
902Control.Controls.Contains(_primaryDragControl))
System\Windows\Forms\Design\FormatControl.cs (2)
269if (tableLayoutPanel1.Controls.Contains(dateTimeFormatsListBox)) 286if (tableLayoutPanel1.Controls.Contains(_customStringTextBox))
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2189if (oldParent.Controls.Contains(newParent))
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1315if (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)
1385Assert.True(collection.Contains(child1)); 1386Assert.True(collection.Contains(child2)); 1387Assert.False(collection.Contains(new Control())); 1388Assert.False(collection.Contains(null));
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
243_propertyGrid.Controls.Contains(textBox).Should().BeTrue();