6 writes to ImageKey
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
1242
ImageKey
= imageKey;
System.Windows.Forms.Tests (4)
System\Windows\Forms\ListViewTests.cs (4)
5060
ListViewItem listViewItem2 = new("item2") {
ImageKey
= "SmallABlue.bmp" };
5062
ListViewItem listViewItem4 = new("Items 4") {
ImageKey
= "SmallA.bmp" };
5064
ListViewItem listViewItem6 = new("Items 6") {
ImageKey
= "SmallABlue.bmp" };
5065
ListViewItem listViewItem7 = new("Items 7") {
ImageKey
= "SmallA.bmp" };
WinFormsControlsTest (1)
ListViewTest.cs (1)
256
ImageKey
= file,
29 references to ImageKey
System.Windows.Forms (6)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
1200
else if (entry.Name == nameof(
ImageKey
))
1202
imageKey = info.GetString(nameof(
ImageKey
));
1270
info.AddValue(nameof(
ImageKey
), ImageIndexer.Key);
System\Windows\Forms\Controls\ListView\ListViewItemConverter.cs (2)
53
if (!string.IsNullOrEmpty(item.
ImageKey
))
59
return new InstanceDescriptor(ctor, new object[] { subItemArray, item.
ImageKey
}, false);
System\Windows\Forms\Controls\ListView\ListViewItemImageIndexer.cs (1)
9
/// <see cref="ListViewItem.
ImageKey
"/>.
System.Windows.Forms.Tests (23)
SerializableTypesTests.cs (1)
185
Assert.Empty(result.
ImageKey
);
System\Windows\Forms\ListViewItemTests.cs (22)
24
Assert.Equal(string.Empty, item.
ImageKey
);
63
Assert.Same(expectedImageKey, item.
ImageKey
);
101
Assert.Empty(item.
ImageKey
);
139
Assert.Same(expectedImageKey, item.
ImageKey
);
177
Assert.Empty(item.
ImageKey
);
214
Assert.Same(expectedImageKey, item.
ImageKey
);
251
Assert.Equal(string.Empty, item.
ImageKey
);
289
Assert.Same(expectedImageKey, item.
ImageKey
);
327
Assert.Empty(item.
ImageKey
);
364
Assert.Same(expectedImageKey, item.
ImageKey
);
402
Assert.Empty(item.
ImageKey
);
440
Assert.Same(expectedImageKey, item.
ImageKey
);
477
Assert.Equal(string.Empty, item.
ImageKey
);
515
Assert.Empty(item.
ImageKey
);
553
Assert.Equal(expectedImageKey, item.
ImageKey
);
591
Assert.Equal(string.Empty, item.
ImageKey
);
628
Assert.Equal(string.Empty, item.
ImageKey
);
666
Assert.Equal(expectedImageKey, item.
ImageKey
);
704
Assert.Equal(string.Empty, item.
ImageKey
);
741
Assert.Equal(string.Empty, item.
ImageKey
);
780
Assert.Empty(item.
ImageKey
);
810
Assert.Empty(item.
ImageKey
);