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)
118
StringCollection imageKeys = _owner.ImageList.Images.
Keys
;
System.Windows.Forms.Tests (45)
System\Windows\Forms\ImageList.ImageCollectionTests.cs (45)
416
Assert.Empty(collection.
Keys
);
417
Assert.NotSame(collection.
Keys
, collection.
Keys
);
450
Assert.Equal("Key1", Assert.Single(collection.
Keys
));
457
Assert.Equal(new string[] { "Key1", "Key2" }, collection.
Keys
.Cast<string>());
463
Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.
Keys
.Cast<string>());
470
Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.
Keys
.Cast<string>());
477
Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
495
Assert.Equal("Key1", Assert.Single(collection.
Keys
));
502
Assert.Equal(new string[] { "Key1", "Key2" }, collection.
Keys
.Cast<string>());
508
Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.
Keys
.Cast<string>());
515
Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.
Keys
.Cast<string>());
522
Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
539
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
546
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
564
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
571
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
608
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
615
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
633
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
640
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
665
Assert.Equal("Key1", Assert.Single(collection.
Keys
));
672
Assert.Equal(new string[] { "Key1", "Key2" }, collection.
Keys
.Cast<string>());
678
Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.
Keys
.Cast<string>());
685
Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.
Keys
.Cast<string>());
692
Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
710
Assert.Equal("Key1", Assert.Single(collection.
Keys
));
717
Assert.Equal(new string[] { "Key1", "Key2" }, collection.
Keys
.Cast<string>());
723
Assert.Equal(new string[] { "Key1", "Key2", "Key1" }, collection.
Keys
.Cast<string>());
730
Assert.Equal(new string[] { "Key1", "Key2", "Key1", "" }, collection.
Keys
.Cast<string>());
737
Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
754
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
761
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
779
Assert.Equal(string.Empty, Assert.Single(collection.
Keys
));
786
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
827
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
834
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
852
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
859
Assert.Equal(new string[] { string.Empty, string.Empty }, collection.
Keys
.Cast<string>());
916
Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.
Keys
.Cast<string>());
934
Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.
Keys
.Cast<string>());
1552
Assert.Equal(expectedKeys, collection.
Keys
.Cast<string>());
1557
Assert.Equal(expectedKeys, collection.
Keys
.Cast<string>());
1574
Assert.Equal(expectedKeys, collection.
Keys
.Cast<string>());
1579
Assert.Equal(expectedKeys, collection.
Keys
.Cast<string>());