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