138 references to ListViewSubItem
System.Windows.Forms.Tests (137)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (4)
492
listView.Items[0].SubItems.Add(new
ListViewSubItem
() { Text = $"SubItem 0" });
493
listView.Items[1].SubItems.Add(new
ListViewSubItem
() { Text = $"SubItem 0" });
1150
listItem1.SubItems.Add(new
ListViewSubItem
() { Text = $"SubItem {i}" });
1151
listItem2.SubItems.Add(new
ListViewSubItem
() { Text = $"SubItem {i}" });
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (9)
40
item.SubItems.AddRange(new ListViewSubItem[] {
new
(),
new
(),
new
(),
new
(),
new
() });
72
item.SubItems.AddRange(new ListViewSubItem[] {
new
(),
new
(),
new
(),
new
() });
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (9)
1051
ListViewItem.ListViewSubItem listViewSubItem =
new
();
1063
ListViewItem.ListViewSubItem listViewSubItem =
new
();
1079
ListViewItem.ListViewSubItem listViewSubItem =
new
();
1095
ListViewItem.ListViewSubItem listViewSubItem =
new
();
1111
ListViewItem.ListViewSubItem listViewSubItem =
new
();
1127
ListViewItem.ListViewSubItem listViewSubItem =
new
();
1143
ListViewItem.ListViewSubItem listViewSubItem =
new
();
1159
ListViewItem.ListViewSubItem listViewSubItem =
new
();
1165
listView.Items[0].SubItems[subItemIndex] = new ListViewItem.
ListViewSubItem
();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
229
new ListViewItem.
ListViewSubItem
()
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (2)
92
subItemsItem.SubItems.Add(new ListViewItem.
ListViewSubItem
());
100
fullRowSelectListViewItem.SubItems.Add(new ListViewItem.
ListViewSubItem
());
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (19)
12
yield return new object[] { Rectangle.Empty, null, new ListViewItem.
ListViewSubItem
(), -2, -2, null, ListViewItemStates.Checked - 1 };
13
yield return new object[] { Rectangle.Empty, new ListViewItem(), new ListViewItem.
ListViewSubItem
(), -2, -2, null, ListViewItemStates.Checked - 1 };
15
yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.
ListViewSubItem
(), -1, -1, new ColumnHeader(), ListViewItemStates.Checked };
16
yield return new object[] { new Rectangle(-1, 2, -3, -4), new ListViewItem(), new ListViewItem.
ListViewSubItem
(), 0, 0, new ColumnHeader(), ListViewItemStates.Focused };
17
yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.
ListViewSubItem
(), 1, 2, new ColumnHeader(), ListViewItemStates.Checked };
41
Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewSubItemEventArgs(null, new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.
ListViewSubItem
(), -1, 0, new ColumnHeader(), ListViewItemStates.Default));
49
Assert.Throws<ArgumentNullException>("item", () => new DrawListViewSubItemEventArgs(graphics, new Rectangle(1, 2, 3, 4), null, new ListViewItem.
ListViewSubItem
(), -1, 0, new ColumnHeader(), ListViewItemStates.Default));
98
yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.
ListViewSubItem
(), 0, null, ListViewItemStates.Default };
99
yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.
ListViewSubItem
(), 0, null, ListViewItemStates.Checked };
100
yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.
ListViewSubItem
(), 0, null, ListViewItemStates.Focused };
101
yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.
ListViewSubItem
(), 0, new ColumnHeader(), ListViewItemStates.Default };
102
yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.
ListViewSubItem
(), 0, new ColumnHeader(), ListViewItemStates.Checked };
103
yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.
ListViewSubItem
(), 0, new ColumnHeader(), ListViewItemStates.Focused };
104
yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.
ListViewSubItem
(), 0, null, ListViewItemStates.Default };
105
yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.
ListViewSubItem
(), 0, null, ListViewItemStates.Checked };
106
yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.
ListViewSubItem
(), 0, null, ListViewItemStates.Focused };
107
yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.
ListViewSubItem
(), 0, new ColumnHeader(), ListViewItemStates.Default };
108
yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.
ListViewSubItem
(), 0, new ColumnHeader(), ListViewItemStates.Checked };
109
yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.
ListViewSubItem
(), 0, new ColumnHeader(), ListViewItemStates.Focused };
System\Windows\Forms\ListView.ListViewItemCollectionTests.cs (3)
28
var grandchild1 = new ListViewItem.
ListViewSubItem
32
var grandchild2 = new ListViewItem.
ListViewSubItem
36
var grandchild3 = new ListViewItem.
ListViewSubItem
System\Windows\Forms\ListViewHitTestInfoTests.cs (1)
12
yield return new object[] { new ListViewItem(), new ListViewItem.
ListViewSubItem
(), ListViewHitTestLocations.None - 1 };
System\Windows\Forms\ListViewSubItemCollectionTests.cs (70)
44
var subItem = new ListViewItem.
ListViewSubItem
();
57
new ListViewItem.
ListViewSubItem
()
68
new ListViewItem.
ListViewSubItem
()
71
var subItem = new ListViewItem.
ListViewSubItem
();
84
new ListViewItem.
ListViewSubItem
()
86
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new ListViewItem.
ListViewSubItem
());
95
new ListViewItem.
ListViewSubItem
()
106
var subItem = new ListViewItem.
ListViewSubItem
();
119
new ListViewItem.
ListViewSubItem
()
130
new ListViewItem.
ListViewSubItem
()
133
var subItem = new ListViewItem.
ListViewSubItem
();
146
new ListViewItem.
ListViewSubItem
()
173
var subItem1 = new ListViewItem.
ListViewSubItem
();
174
var subItem2 = new ListViewItem.
ListViewSubItem
189
var subItem = new ListViewItem.
ListViewSubItem
();
202
var subItem = new ListViewItem.
ListViewSubItem
();
207
Assert.Throws<InvalidOperationException>(() => collection.Add(new ListViewItem.
ListViewSubItem
()));
215
var subItem = new ListViewItem.
ListViewSubItem
();
232
var subItem = new ListViewItem.
ListViewSubItem
();
292
var subItem = new ListViewItem.
ListViewSubItem
();
427
var subItem = new ListViewItem.
ListViewSubItem
();
455
var subItem = new ListViewItem.
ListViewSubItem
();
459
Assert.False(collection.Contains(new ListViewItem.
ListViewSubItem
()));
469
Assert.False(collection.Contains(new ListViewItem.
ListViewSubItem
()));
485
var subItem1 = new ListViewItem.
ListViewSubItem
();
486
var subItem2 = new ListViewItem.
ListViewSubItem
511
var subItem = new ListViewItem.
ListViewSubItem
();
515
Assert.False(collection.Contains(new ListViewItem.
ListViewSubItem
()));
526
Assert.False(collection.Contains(new ListViewItem.
ListViewSubItem
()));
536
var subItem = new ListViewItem.
ListViewSubItem
();
540
Assert.Equal(-1, collection.IndexOf(new ListViewItem.
ListViewSubItem
()));
550
Assert.Equal(-1, collection.IndexOf(new ListViewItem.
ListViewSubItem
()));
566
var subItem1 = new ListViewItem.
ListViewSubItem
();
567
var subItem2 = new ListViewItem.
ListViewSubItem
596
var subItem = new ListViewItem.
ListViewSubItem
();
600
Assert.Equal(-1, collection.IndexOf(new ListViewItem.
ListViewSubItem
()));
611
Assert.Equal(-1, collection.IndexOf(new ListViewItem.
ListViewSubItem
()));
621
var subItem = new ListViewItem.
ListViewSubItem
();
622
collection.Add(new ListViewItem.
ListViewSubItem
());
636
var subItem = new ListViewItem.
ListViewSubItem
();
641
Assert.Throws<InvalidOperationException>(() => collection.Add(new ListViewItem.
ListViewSubItem
()));
650
new ListViewItem.
ListViewSubItem
()
670
var subItem = new ListViewItem.
ListViewSubItem
();
671
collection.Add(new ListViewItem.
ListViewSubItem
());
695
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new ListViewItem.
ListViewSubItem
()));
703
var subItem = new ListViewItem.
ListViewSubItem
();
725
var subItem = new ListViewItem.
ListViewSubItem
();
745
var subItem = new ListViewItem.
ListViewSubItem
();
757
var subItem1 = new ListViewItem.
ListViewSubItem
();
758
var subItem2 = new ListViewItem.
ListViewSubItem
();
759
var subItem3 = new ListViewItem.
ListViewSubItem
();
760
var subItem4 = new ListViewItem.
ListViewSubItem
();
807
new ListViewItem.
ListViewSubItem
()
834
var subItem = new ListViewItem.
ListViewSubItem
857
var subItem = new ListViewItem.
ListViewSubItem
();
879
ListViewItem.ListViewSubItem subItem =
new
();
912
ListViewItem.ListViewSubItem subItem1 =
new
();
913
ListViewItem.ListViewSubItem subItem2 =
new
();
950
ListViewItem.ListViewSubItem subItem1 =
new
();
951
ListViewItem.ListViewSubItem subItem2 =
new
();
973
ListViewItem.ListViewSubItem subItem =
new
();
986
ListViewItem.ListViewSubItem subItem1 =
new
();
987
ListViewItem.ListViewSubItem subItem2 =
new
();
989
ListViewItem.ListViewSubItem oldSubItem2 =
new
();
1018
ListViewItem.ListViewSubItem subItem =
new
();
1036
ListViewItem.ListViewSubItem subItem =
new
();
1052
ListViewItem.ListViewSubItem subItem1 =
new
();
1053
ListViewItem.ListViewSubItem subItem2 =
new
();
1075
ListViewItem.ListViewSubItem subItem =
new
();
1094
ListViewItem.ListViewSubItem subItem =
new
();
System\Windows\Forms\ListViewSubItemConverterTests.cs (2)
105
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new ListViewItem.
ListViewSubItem
(), destinationType));
119
var item = new ListViewItem.
ListViewSubItem
();
System\Windows\Forms\ListViewSubItemTests.cs (17)
16
var subItem = new ListViewItem.
ListViewSubItem
();
123
var subItem = new ListViewItem.
ListViewSubItem
();
142
var subItem = new ListViewItem.
ListViewSubItem
172
var subItem = new ListViewItem.
ListViewSubItem
();
191
var subItem = new ListViewItem.
ListViewSubItem
();
260
var subItem = new ListViewItem.
ListViewSubItem
();
273
var subItem = new ListViewItem.
ListViewSubItem
297
var subItem = new ListViewItem.
ListViewSubItem
();
316
var subItem = new ListViewItem.
ListViewSubItem
();
372
var subItem = new ListViewItem.
ListViewSubItem
();
393
var subItem = new ListViewItem.
ListViewSubItem
423
var subItem = new ListViewItem.
ListViewSubItem
();
442
var subItem = new ListViewItem.
ListViewSubItem
();
473
var subItem = new ListViewItem.
ListViewSubItem
488
var subItem = new ListViewItem.
ListViewSubItem
519
var subItem = new ListViewItem.
ListViewSubItem
571
yield return new object[] { new ListViewItem.
ListViewSubItem
() };
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
559
listViewItem.SubItems.Add(new ListViewItem.
ListViewSubItem
() { Text = $"Test SubItem{i}" });