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