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