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)
1247
Assert.Equal(expected, collection.
IndexOfKey
(key));
1250
Assert.Equal(expected, collection.
IndexOfKey
(key));
1251
Assert.Equal(-1, collection.
IndexOfKey
("NoSuchKey"));
1261
Assert.Equal(-1, collection.
IndexOfKey
(key));
1264
Assert.Equal(-1, collection.
IndexOfKey
(key));
1265
Assert.Equal(-1, collection.
IndexOfKey
("NoSuchKey"));