9 references to IndexOf
System.Windows.Forms (2)
System\Windows\Forms\Control.ControlCollection.cs (2)
130
return
IndexOf
(c);
405
int index =
IndexOf
(child);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1540
index = parent.Controls.
IndexOf
(c);
1569
index = parent.Controls.
IndexOf
(c);
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
109
((IList)_collection).IndexOf(control).Should().Be(_control.Controls.
IndexOf
(control));
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlTests.ControlCollection.cs (4)
1751
Assert.Equal(0, collection.
IndexOf
(child1));
1752
Assert.Equal(1, collection.
IndexOf
(child2));
1753
Assert.Equal(-1, collection.
IndexOf
(new Control()));
1754
Assert.Equal(-1, collection.
IndexOf
(null));