6 references to IndexOfKey
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (2)
115int index = IndexOfKey(key); 203return IsValidIndex(IndexOfKey(key));
System.Windows.Forms.Tests (4)
System\Windows\Forms\ListView.CheckedListViewItemCollectionTests.cs (4)
294_collection.IndexOfKey("bar").Should().Be(1); 302_collection.IndexOfKey(null).Should().Be(-1); 303_collection.IndexOfKey(string.Empty).Should().Be(-1); 311Action act = () => _collection.IndexOfKey("foo");