11 references to IndexOfKey
System.Windows.Forms (5)
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (3)
214
int index =
IndexOfKey
(key);
445
public bool ContainsKey(string key) => IsValidIndex(
IndexOfKey
(key));
566
int index =
IndexOfKey
(key);
System\Windows\Forms\Controls\ImageList\ImageList.Indexer.cs (1)
62
return ImageList.Images.
IndexOfKey
(Key);
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (1)
65
return ImageList.Images.
IndexOfKey
(Key);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ImageList.ImageCollectionTests.cs (6)
1249
Assert.Equal(expected, collection.
IndexOfKey
(key));
1252
Assert.Equal(expected, collection.
IndexOfKey
(key));
1253
Assert.Equal(-1, collection.
IndexOfKey
("NoSuchKey"));
1263
Assert.Equal(-1, collection.
IndexOfKey
(key));
1266
Assert.Equal(-1, collection.
IndexOfKey
(key));
1267
Assert.Equal(-1, collection.
IndexOfKey
("NoSuchKey"));