5 writes to ImageIndex
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
1246
ImageIndex
= imageIndex;
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
1007
control.Items[0].
ImageIndex
= 0;
WinFormsControlsTest (3)
ListViewTest.cs (3)
22
listView1.Items[0].
ImageIndex
= 0;
23
listView1.Items[1].
ImageIndex
= 1;
24
listView1.Items[2].
ImageIndex
= 2;
31 references to ImageIndex
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
6777
if ((dispInfo->item.mask & LIST_VIEW_ITEM_FLAGS.LVIF_IMAGE) != 0 && lvItem.
ImageIndex
!= -1)
6779
dispInfo->item.iImage = lvItem.
ImageIndex
;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
1196
else if (entry.Name == nameof(
ImageIndex
))
1198
imageIndex = info.GetInt32(nameof(
ImageIndex
));
1267
info.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)
67
return 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)
184
Assert.Equal(0, result.
ImageIndex
);
System\Windows\Forms\ListViewItemTests.cs (22)
23
Assert.Equal(-1, item.
ImageIndex
);
62
Assert.Equal(-1, item.
ImageIndex
);
100
Assert.Equal(imageIndex, item.
ImageIndex
);
138
Assert.Equal(-1, item.
ImageIndex
);
176
Assert.Equal(imageIndex, item.
ImageIndex
);
213
Assert.Equal(-1, item.
ImageIndex
);
250
Assert.Equal(imageIndex, item.
ImageIndex
);
288
Assert.Equal(-1, item.
ImageIndex
);
326
Assert.Equal(imageIndex, item.
ImageIndex
);
363
Assert.Equal(-1, item.
ImageIndex
);
401
Assert.Equal(imageIndex, item.
ImageIndex
);
439
Assert.Equal(-1, item.
ImageIndex
);
476
Assert.Equal(imageIndex, item.
ImageIndex
);
514
Assert.Equal(-1, item.
ImageIndex
);
552
Assert.Equal(-1, item.
ImageIndex
);
590
Assert.Equal(imageIndex, item.
ImageIndex
);
627
Assert.Equal(-1, item.
ImageIndex
);
665
Assert.Equal(-1, item.
ImageIndex
);
703
Assert.Equal(imageIndex, item.
ImageIndex
);
740
Assert.Equal(-1, item.
ImageIndex
);
779
Assert.Equal(-1, item.
ImageIndex
);
809
Assert.Equal(-1, item.
ImageIndex
);