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