50 references to Keys
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1643
StateImageKey = _treeView.StateImageList.Images.
Keys
[StateImageIndex];
System\Windows\Forms\ImageKeyConverter.cs (1)
162
StringCollection imageKeys = imageList.Images.
Keys
;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (1)
55
StringCollection imageKeys = imageList.Images.
Keys
;
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
98
imageListImages[i] = new ImageListImage(source[i]) { Name = source.
Keys
[i] };
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
120
StringCollection imageKeys = _owner.ImageList.Images.
Keys
;
System.Windows.Forms.Tests (45)
System\Windows\Forms\ImageList.ImageCollectionTests.cs (45)
414
Assert.Empty(collection.
Keys
);
415
Assert.NotSame(collection.
Keys
, collection.
Keys
);
448
Assert.Equal("Key1", Assert.Single(collection.
Keys
));
455
Assert.Equal(new string[] { "Key1", "Key2" }, collection.
Keys
.Cast<string>());
461
Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.
Keys
.Cast<string>());
468
Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.
Keys
.Cast<string>());
475
Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
493
Assert.Equal("Key1", Assert.Single(collection.
Keys
));
500
Assert.Equal(new string[] { "Key1", "Key2" }, collection.
Keys
.Cast<string>());
506
Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.
Keys
.Cast<string>());
513
Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.
Keys
.Cast<string>());
520
Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
537
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
544
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
562
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
569
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
606
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
613
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
631
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
638
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
663
Assert.Equal("Key1", Assert.Single(collection.
Keys
));
670
Assert.Equal(new string[] { "Key1", "Key2" }, collection.
Keys
.Cast<string>());
676
Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.
Keys
.Cast<string>());
683
Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.
Keys
.Cast<string>());
690
Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
708
Assert.Equal("Key1", Assert.Single(collection.
Keys
));
715
Assert.Equal(new string[] { "Key1", "Key2" }, collection.
Keys
.Cast<string>());
721
Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.
Keys
.Cast<string>());
728
Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.
Keys
.Cast<string>());
735
Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
752
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
759
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
777
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
784
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
825
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
832
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
850
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
857
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
914
Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.
Keys
.Cast<string>());
932
Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.
Keys
.Cast<string>());
1550
Assert.Equal(expectedKeys, collection.
Keys
.Cast<string>());
1555
Assert.Equal(expectedKeys, collection.
Keys
.Cast<string>());
1572
Assert.Equal(expectedKeys, collection.
Keys
.Cast<string>());
1577
Assert.Equal(expectedKeys, collection.
Keys
.Cast<string>());