68 references to Add
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (3)
121
Add
(item);
128
Add
(item);
191
return IndexOf(
Add
(itemValue));
System.Windows.Forms.Tests (64)
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.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (8)
1052
listViewItem.SubItems.
Add
(listViewSubItem);
1064
listViewItem.SubItems.
Add
(listViewSubItem);
1080
listViewItem.SubItems.
Add
(listViewSubItem);
1096
listViewItem.SubItems.
Add
(listViewSubItem);
1112
listViewItem.SubItems.
Add
(listViewSubItem);
1128
listViewItem.SubItems.
Add
(listViewSubItem);
1144
listViewItem.SubItems.
Add
(listViewSubItem);
1160
listViewItem.SubItems.
Add
(listViewSubItem);
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
165
item.SubItems.
Add
(subItem);
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (2)
92
subItemsItem.SubItems.
Add
(new ListViewItem.ListViewSubItem());
100
fullRowSelectListViewItem.SubItems.
Add
(new ListViewItem.ListViewSubItem());
System\Windows\Forms\ListView.ListViewItemCollectionTests.cs (3)
42
child3.SubItems.
Add
(grandchild1);
43
child3.SubItems.
Add
(grandchild2);
44
child3.SubItems.
Add
(grandchild3);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
179
listViewItem.SubItems.
Add
(new ListViewSubItem(listViewItem, new string('t', 10)));
195
listViewItem.SubItems.
Add
(listViewSubItem);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (35)
45
collection.
Add
(subItem);
178
collection.
Add
(subItem1);
179
collection.
Add
(subItem2);
190
collection.
Add
(subItem);
203
collection.
Add
(subItem);
207
Assert.Throws<InvalidOperationException>(() => collection.
Add
(new ListViewItem.ListViewSubItem()));
216
collection.
Add
(subItem);
217
collection.
Add
(subItem);
233
otherCollection.
Add
(subItem);
235
collection.
Add
(subItem);
284
Assert.Throws<ArgumentNullException>("item", () => collection.
Add
((ListViewItem.ListViewSubItem)null));
357
collection.
Add
(subItem1);
428
collection.
Add
(subItem);
456
collection.
Add
(subItem);
490
collection.
Add
(subItem1);
491
collection.
Add
(subItem2);
537
collection.
Add
(subItem);
571
collection.
Add
(subItem1);
572
collection.
Add
(subItem2);
622
collection.
Add
(new ListViewItem.ListViewSubItem());
641
Assert.Throws<InvalidOperationException>(() => collection.
Add
(new ListViewItem.ListViewSubItem()));
704
collection.
Add
(subItem);
761
collection.
Add
(subItem1);
762
collection.
Add
(subItem2);
763
collection.
Add
(subItem3);
764
collection.
Add
(subItem4);
838
collection.
Add
(subItem);
883
listViewItem.SubItems.
Add
(subItem);
954
listViewItem.SubItems.
Add
(subItem1);
955
listViewItem.SubItems.
Add
(subItem2);
990
listViewItem.SubItems.
Add
(oldSubItem2);
1019
listViewItem.SubItems.
Add
(subItem);
1076
listViewItem.SubItems.
Add
(subItem);
1095
listViewItem.SubItems.
Add
(subItem);
1115
listViewItem.SubItems.
Add
(subItem);
System\Windows\Forms\ListViewSubItemTests.cs (9)
124
item.SubItems.
Add
(subItem);
173
item.SubItems.
Add
(subItem);
192
item.SubItems.
Add
(subItem);
261
item.SubItems.
Add
(subItem);
298
item.SubItems.
Add
(subItem);
317
item.SubItems.
Add
(subItem);
373
item.SubItems.
Add
(subItem);
424
item.SubItems.
Add
(subItem);
443
item.SubItems.
Add
(subItem);
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
559
listViewItem.SubItems.
Add
(new ListViewItem.ListViewSubItem() { Text = $"Test SubItem{i}" });