8 writes to ImageIndex
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\Label.cs (1)
395
ImageIndex
= -1;
System.Windows.Forms.Tests (7)
System\Windows\Forms\LabelTests.cs (7)
192
control.
ImageIndex
= index;
208
control.
ImageIndex
= 2;
624
label.
ImageIndex
= 0;
628
label.
ImageIndex
= 0;
632
label.
ImageIndex
= 1;
636
Assert.Throws<ArgumentOutOfRangeException>(() => label.
ImageIndex
= -2);
640
label.
ImageIndex
= -1;
11 references to ImageIndex
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\Label.cs (1)
437
if (
ImageIndex
== value && value != ImageList.Indexer.DefaultIndex)
System.Windows.Forms.Tests (10)
System\Windows\Forms\LabelTests.cs (10)
71
Assert.Equal(-1, control.
ImageIndex
);
188
Assert.Equal(index, control.
ImageIndex
);
194
Assert.Equal(index, control.
ImageIndex
);
206
Assert.Equal(-1, control.
ImageIndex
);
212
Assert.Equal(-1, control.
ImageIndex
);
625
Assert.Equal(0, label.
ImageIndex
);
629
Assert.Equal(0, label.
ImageIndex
);
633
Assert.Equal(1, label.
ImageIndex
);
637
Assert.Equal(1, label.
ImageIndex
); // Value should not have changed.
641
Assert.Equal(-1, label.
ImageIndex
);