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