5 writes to ImageIndex
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
1246ImageIndex = imageIndex;
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
1007control.Items[0].ImageIndex = 0;
WinFormsControlsTest (3)
ListViewTest.cs (3)
22listView1.Items[0].ImageIndex = 0; 23listView1.Items[1].ImageIndex = 1; 24listView1.Items[2].ImageIndex = 2;
31 references to ImageIndex
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
6777if ((dispInfo->item.mask & LIST_VIEW_ITEM_FLAGS.LVIF_IMAGE) != 0 && lvItem.ImageIndex != -1) 6779dispInfo->item.iImage = lvItem.ImageIndex;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
1196else if (entry.Name == nameof(ImageIndex)) 1198imageIndex = info.GetInt32(nameof(ImageIndex)); 1267info.AddValue(nameof(ImageIndex), ImageIndexer.Index);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
56&& _owningItem.ImageIndex != ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\ListView\ListViewItemConverter.cs (1)
67return new InstanceDescriptor(ctor, new object[] { subItemArray, item.ImageIndex }, false);
System\Windows\Forms\Controls\ListView\ListViewItemImageIndexer.cs (1)
8/// ListViewItemImageIndexer is a class used to support <see cref="ListViewItem.ImageIndex"/> and
System.Windows.Forms.Tests (23)
SerializableTypesTests.cs (1)
184Assert.Equal(0, result.ImageIndex);
System\Windows\Forms\ListViewItemTests.cs (22)
23Assert.Equal(-1, item.ImageIndex); 62Assert.Equal(-1, item.ImageIndex); 100Assert.Equal(imageIndex, item.ImageIndex); 138Assert.Equal(-1, item.ImageIndex); 176Assert.Equal(imageIndex, item.ImageIndex); 213Assert.Equal(-1, item.ImageIndex); 250Assert.Equal(imageIndex, item.ImageIndex); 288Assert.Equal(-1, item.ImageIndex); 326Assert.Equal(imageIndex, item.ImageIndex); 363Assert.Equal(-1, item.ImageIndex); 401Assert.Equal(imageIndex, item.ImageIndex); 439Assert.Equal(-1, item.ImageIndex); 476Assert.Equal(imageIndex, item.ImageIndex); 514Assert.Equal(-1, item.ImageIndex); 552Assert.Equal(-1, item.ImageIndex); 590Assert.Equal(imageIndex, item.ImageIndex); 627Assert.Equal(-1, item.ImageIndex); 665Assert.Equal(-1, item.ImageIndex); 703Assert.Equal(imageIndex, item.ImageIndex); 740Assert.Equal(-1, item.ImageIndex); 779Assert.Equal(-1, item.ImageIndex); 809Assert.Equal(-1, item.ImageIndex);