9 references to IndexOf
System.Windows.Forms (2)
System\Windows\Forms\Control.ControlCollection.cs (2)
130return IndexOf(c); 405int index = IndexOf(child);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1540index = parent.Controls.IndexOf(c); 1569index = 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)
1751Assert.Equal(0, collection.IndexOf(child1)); 1752Assert.Equal(1, collection.IndexOf(child2)); 1753Assert.Equal(-1, collection.IndexOf(new Control())); 1754Assert.Equal(-1, collection.IndexOf(null));