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)
574
Assert.Equal(expected, collection.
IndexOfKey
(key));
577
Assert.Equal(expected, collection.
IndexOfKey
(key));
578
Assert.Equal(-1, collection.
IndexOfKey
("noSuchKey"));
587
Assert.Equal(-1, collection.
IndexOfKey
("text"));