Implemented interface member:
17 references to IndexOf
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
921x = _itemsCollection.IndexOf(value);
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (2)
258return IndexOf(value) != -1; 397int index = IndexOf(value);
System.Windows.Forms.Tests (14)
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (14)
1196Assert.Equal(0, comboBoxObjectCollection.IndexOf("a")); 1197Assert.Equal(1, comboBoxObjectCollection.IndexOf("b")); 1198Assert.Equal(-1, comboBoxObjectCollection.IndexOf("c")); 1199Assert.Equal(-1, comboBoxObjectCollection.IndexOf(null)); 1201Assert.Equal(0, comboBoxObjectCollection.IndexOf(comboBoxObjectCollection[0])); 1202Assert.Equal(1, comboBoxObjectCollection.IndexOf(comboBoxObjectCollection[1])); 1225Assert.Equal(0, comboBoxObjectCollection.IndexOf(person1)); 1226Assert.Equal(1, comboBoxObjectCollection.IndexOf(person2)); 1227Assert.Equal(-1, comboBoxObjectCollection.IndexOf(person3)); 1228Assert.Equal(-1, comboBoxObjectCollection.IndexOf("Name 1")); 1229Assert.Equal(-1, comboBoxObjectCollection.IndexOf("Name 2")); 1230Assert.Equal(-1, comboBoxObjectCollection.IndexOf(null)); 1232Assert.Equal(0, comboBoxObjectCollection.IndexOf(comboBoxObjectCollection[0])); 1233Assert.Equal(1, comboBoxObjectCollection.IndexOf(comboBoxObjectCollection[1]));