7 references to IndexOfKey
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (3)
97
int index =
IndexOfKey
(key);
226
public virtual bool ContainsKey(string? key) => IsValidIndex(
IndexOfKey
(key));
366
int index =
IndexOfKey
(key);
System.Windows.Forms.Tests (4)
System\Windows\Forms\ListViewSubItemCollectionTests.cs (4)
576
Assert.Equal(expected, collection.
IndexOfKey
(key));
579
Assert.Equal(expected, collection.
IndexOfKey
(key));
580
Assert.Equal(-1, collection.
IndexOfKey
("noSuchKey"));
589
Assert.Equal(-1, collection.
IndexOfKey
("text"));