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