7 writes to ImageKey
System.Windows.Forms.Tests (7)
System\Windows\Forms\LabelTests.cs (7)
191control.ImageKey = "key"; 209control.ImageKey = key; 658label.ImageKey = "key1"; 662label.ImageKey = "key2"; 666label.ImageKey = "nonexistent"; 670label.ImageKey = null; 674label.ImageKey = string.Empty;
11 references to ImageKey
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\Label.cs (1)
469if (ImageKey == value && !string.Equals(value, ImageList.Indexer.DefaultKey))
System.Windows.Forms.Tests (10)
System\Windows\Forms\LabelTests.cs (10)
72Assert.Empty(control.ImageKey); 189Assert.Equal(string.Empty, control.ImageKey); 195Assert.Equal(string.Empty, control.ImageKey); 205Assert.Equal(key, control.ImageKey); 211Assert.Equal(key, control.ImageKey); 659Assert.Equal("key1", label.ImageKey); 663Assert.Equal("key2", label.ImageKey); 667Assert.Equal("nonexistent", label.ImageKey); 671Assert.Equal(ImageList.Indexer.DefaultKey, label.ImageKey); // Should reset to default value. 675Assert.Equal(ImageList.Indexer.DefaultKey, label.ImageKey); // Should reset to default value.