53 writes to ImageIndex
System.Windows.Forms (10)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1720ImageIndex = imageIndex
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1064ImageIndex = ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
136set => base.ImageIndex = value;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (7)
936_printToolStripButton.ImageIndex = 0; 937_zoomToolStripSplitButton.ImageIndex = 1; 938_onePageToolStripButton.ImageIndex = 2; 939_twoPagesToolStripButton.ImageIndex = 3; 940_threePagesToolStripButton.ImageIndex = 4; 941_fourPagesToolStripButton.ImageIndex = 5; 942_sixPagesToolStripButton.ImageIndex = 6;
System.Windows.Forms.Tests (43)
System\Windows\Forms\ToolStripControlHostTests.cs (2)
1276ImageIndex = value 1284item.ImageIndex = value;
System\Windows\Forms\ToolStripItemTests.cs (41)
3702ImageIndex = 0, 3723ImageIndex = 1, 3770ImageIndex = imageIndex, 3827ImageIndex = 1 3870ImageIndex = 1 4110ImageIndex = 0, 4155ImageIndex = 0, 4387ImageIndex = value 4394item.ImageIndex = value; 4410ImageIndex = value 4418item.ImageIndex = value; 4434ImageIndex = value 4442item.ImageIndex = value; 4473item.ImageIndex = value; 4480item.ImageIndex = value; 4522item.ImageIndex = value; 4530item.ImageIndex = value; 4574item.ImageIndex = value; 4584item.ImageIndex = value; 4616item.ImageIndex = value; 4623item.ImageIndex = value; 4658item.ImageIndex = value; 4665item.ImageIndex = value; 4701item.ImageIndex = value; 4711item.ImageIndex = value; 4730Assert.Throws<ArgumentOutOfRangeException>("value", () => item.ImageIndex = -2); 4740item.ImageIndex = -1; 4745item.ImageIndex = 0; 4765item.ImageIndex = -1; 4770item.ImageIndex = 0; 4796item.ImageIndex = 0; 4800item.ImageIndex = 0; 4804item.ImageIndex = -1; 4819item.ImageIndex = -1; 4824item.ImageIndex = 0; 4843item.ImageIndex = -1; 4848item.ImageIndex = 0; 4874item.ImageIndex = 0; 4878item.ImageIndex = 0; 4882item.ImageIndex = -1; 4937ImageIndex = 1,
90 references to ImageIndex
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
135get => base.ImageIndex;
System.Windows.Forms.Tests (89)
System\Windows\Forms\ToolStripButtonTests.cs (6)
61Assert.Equal(-1, item.ImageIndex); 142Assert.Equal(-1, item.ImageIndex); 229Assert.Equal(-1, item.ImageIndex); 319Assert.Equal(-1, item.ImageIndex); 407Assert.Equal(-1, item.ImageIndex); 505Assert.Equal(-1, item.ImageIndex);
System\Windows\Forms\ToolStripControlHostTests.cs (7)
90Assert.Equal(-1, item.ImageIndex); 1228Assert.Equal(-1, item.ImageIndex); 1234Assert.Equal(-1, item.ImageIndex); 1278Assert.Equal(value, item.ImageIndex); 1285Assert.Equal(value, item.ImageIndex); 1301Assert.Equal(-1, item.ImageIndex); 1308Assert.Equal(-1, item.ImageIndex);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
61Assert.Equal(-1, item.ImageIndex); 150Assert.Equal(-1, item.ImageIndex); 249Assert.Equal(-1, item.ImageIndex); 357Assert.Equal(-1, item.ImageIndex);
System\Windows\Forms\ToolStripItemTests.cs (71)
60Assert.Equal(-1, item.ImageIndex); 145Assert.Equal(-1, item.ImageIndex); 240Assert.Equal(-1, item.ImageIndex); 3801Assert.Equal(-1, item.ImageIndex); 3806Assert.Equal(-1, item.ImageIndex); 3832Assert.Equal(expectedImageIndex, item.ImageIndex); 3837Assert.Equal(expectedImageIndex, item.ImageIndex); 3853Assert.Equal(-1, item.ImageIndex); 3858Assert.Equal(-1, item.ImageIndex); 3875Assert.Equal(expectedImageIndex, item.ImageIndex); 3880Assert.Equal(expectedImageIndex, item.ImageIndex); 3922Assert.Equal(-1, item.ImageIndex); 3929Assert.Equal(-1, item.ImageIndex); 3974Assert.Equal(-1, item.ImageIndex); 3984Assert.Equal(-1, item.ImageIndex); 4015Assert.Equal(-1, item.ImageIndex); 4022Assert.Equal(-1, item.ImageIndex); 4057Assert.Equal(-1, item.ImageIndex); 4067Assert.Equal(-1, item.ImageIndex); 4389Assert.Equal(value, item.ImageIndex); 4395Assert.Equal(value, item.ImageIndex); 4412Assert.Equal(value, item.ImageIndex); 4419Assert.Equal(value, item.ImageIndex); 4436Assert.Equal(value, item.ImageIndex); 4443Assert.Equal(value, item.ImageIndex); 4474Assert.Equal(value, item.ImageIndex); 4481Assert.Equal(value, item.ImageIndex); 4523Assert.Equal(expected, item.ImageIndex); 4531Assert.Equal(expected, item.ImageIndex); 4575Assert.Equal(value, item.ImageIndex); 4585Assert.Equal(value, item.ImageIndex); 4617Assert.Equal(value, item.ImageIndex); 4624Assert.Equal(value, item.ImageIndex); 4659Assert.Equal(value, item.ImageIndex); 4666Assert.Equal(value, item.ImageIndex); 4702Assert.Equal(value, item.ImageIndex); 4712Assert.Equal(value, item.ImageIndex); 4736PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 4741Assert.Equal(-1, item.ImageIndex); 4746Assert.Equal(0, item.ImageIndex); 4750Assert.Equal(0, item.ImageIndex); 4757PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 4766Assert.Equal(-1, item.ImageIndex); 4771Assert.Equal(0, item.ImageIndex); 4775Assert.Equal(0, item.ImageIndex); 4782PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 4797Assert.Equal(0, item.ImageIndex); 4801Assert.Equal(0, item.ImageIndex); 4805Assert.Equal(-1, item.ImageIndex); 4809Assert.Equal(-1, item.ImageIndex); 4816PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 4820Assert.Equal(-1, item.ImageIndex); 4825Assert.Equal(0, item.ImageIndex); 4829Assert.Equal(0, item.ImageIndex); 4836PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 4844Assert.Equal(-1, item.ImageIndex); 4849Assert.Equal(0, item.ImageIndex); 4853Assert.Equal(0, item.ImageIndex); 4860PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.ImageIndex)]; 4875Assert.Equal(0, item.ImageIndex); 4879Assert.Equal(0, item.ImageIndex); 4883Assert.Equal(-1, item.ImageIndex); 4887Assert.Equal(-1, item.ImageIndex); 4900Assert.Equal(-1, item.ImageIndex); 4906Assert.Equal(-1, item.ImageIndex); 4921Assert.Equal(-1, item.ImageIndex); 4927Assert.Equal(-1, item.ImageIndex); 4941Assert.Equal(-1, item.ImageIndex); 4947Assert.Equal(-1, item.ImageIndex); 5026Assert.Equal(-1, item.ImageIndex); 5034Assert.Equal(-1, item.ImageIndex);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
65Assert.Equal(-1, item.ImageIndex);