177 references to Add
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (4)
137
Add
(group);
148
return
Add
(group);
158
Add
(groups[i]);
169
Add
(groups[i]);
System.Windows.Forms.Tests (169)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (24)
92
listView.Groups.
Add
(group);
122
listView.Groups.
Add
(group);
146
listView.Groups.
Add
(group);
274
listView.Groups.
Add
(listViewGroup);
352
listView.Groups.
Add
(listViewGroup);
397
listView.Groups.
Add
(new ListViewGroup("Test Group"));
454
listView.Groups.
Add
(new ListViewGroup("Test Group"));
520
listView.Groups.
Add
(new ListViewGroup("Test Group"));
591
listView.Groups.
Add
(new ListViewGroup("Test Group"));
646
listView.Groups.
Add
(new ListViewGroup("Test Group 1"));
647
listView.Groups.
Add
(new ListViewGroup("Test Group 2"));
726
listView.Groups.
Add
(new ListViewGroup("Test Group 1"));
727
listView.Groups.
Add
(new ListViewGroup("Test Group 2"));
804
listView.Groups.
Add
(new ListViewGroup("Test Group 1"));
806
listView.Groups.
Add
(new ListViewGroup("Test Group 2"));
860
listView.Groups.
Add
(new ListViewGroup("Test Group 1"));
861
listView.Groups.
Add
(new ListViewGroup("Test Group 2"));
928
listView.Groups.
Add
(listGroup1);
929
listView.Groups.
Add
(listGroup2);
1399
listView.Groups.
Add
(listViewGroup);
1726
listView.Groups.
Add
(listViewGroupWithoutItems);
1727
listView.Groups.
Add
(listViewGroupWithItems1);
1728
listView.Groups.
Add
(listViewGroupWithItems2);
1729
listView.Groups.
Add
(listViewGroupWithInvisibleItems);
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (37)
22
list.Groups.
Add
(listGroup);
40
list.Groups.
Add
(listGroup);
55
list.Groups.
Add
(listGroup);
87
list.Groups.
Add
(listGroup);
119
list.Groups.
Add
(listGroup);
144
groups.
Add
(new ListViewGroup("Group1"));
145
groups.
Add
(new ListViewGroup("Group2"));
213
groups.
Add
(new ListViewGroup("Group1"));
214
groups.
Add
(new ListViewGroup("Group2"));
281
list.Groups.
Add
(listGroup);
327
listView.Groups.
Add
(group);
377
groups.
Add
(new ListViewGroup("Group1"));
378
groups.
Add
(new ListViewGroup("Group2"));
472
groups.
Add
(new ListViewGroup("Group1"));
473
groups.
Add
(new ListViewGroup("Group2"));
508
groups.
Add
(new ListViewGroup("Group1"));
509
groups.
Add
(new ListViewGroup("Group2"));
592
groups.
Add
(new ListViewGroup("Group1"));
593
groups.
Add
(new ListViewGroup("Group2"));
594
groups.
Add
(new ListViewGroup("Group3"));
712
listView.Groups.
Add
(lvgroup1);
721
listView.Groups.
Add
(lvgroup2);
746
listView.Groups.
Add
(listViewGroup);
1159
listView.Groups.
Add
(listViewGroup);
1219
listView.Groups.
Add
(new ListViewGroup());
1235
listView.Groups.
Add
(listViewGroupWithoutItems);
1236
listView.Groups.
Add
(listViewGroupWithItems1);
1237
listView.Groups.
Add
(listViewGroupWithItems2);
1238
listView.Groups.
Add
(listViewGroupWithInvisibleItems);
1267
listView.Groups.
Add
(listGroup1);
1268
listView.Groups.
Add
(listGroup2);
1328
listView.Groups.
Add
(listGroup);
1352
listView.Groups.
Add
(group);
1368
listView.Groups.
Add
(group);
1382
listView.Groups.
Add
(group);
1407
listView.Groups.
Add
(listViewGroup);
1435
listView.Groups.
Add
(listViewGroup);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (10)
79
listView.Groups.
Add
(listviewGroup);
1145
listView.Groups.
Add
(listViewGroup);
1205
listView.Groups.
Add
(listViewGroup);
1262
listView.Groups.
Add
(listViewGroup);
1314
listView.Groups.
Add
(new ListViewGroup());
1348
listView.Groups.
Add
(new ListViewGroup());
1406
listView.Groups.
Add
(new ListViewGroup());
1480
listView.Groups.
Add
(new ListViewGroup());
1946
listView.Groups.
Add
(lvgroup1);
1947
listView.Groups.
Add
(lvgroup2);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
808
listView.Groups.
Add
(listViewGroup);
System\Windows\Forms\ListViewGroupCollectionTests.cs (53)
29
collection.
Add
(group);
40
collection.
Add
(new ListViewGroup());
49
collection.
Add
(new ListViewGroup());
64
collection.
Add
(new ListViewGroup());
79
collection.
Add
(new ListViewGroup());
100
collection.
Add
(new ListViewGroup());
123
collection.
Add
(group1);
124
collection.
Add
(group2);
135
collection.
Add
(new ListViewGroup());
141
otherCollection.
Add
(group);
156
collection.
Add
(oldGroup);
174
collection.
Add
(new ListViewGroup());
185
collection.
Add
(new ListViewGroup());
271
collection.
Add
(group1);
272
collection.
Add
(group2);
292
collection.
Add
(group1);
293
collection.
Add
(group2);
318
collection.
Add
(group1);
319
collection.
Add
(group2);
341
collection.
Add
(group1);
342
collection.
Add
(group2);
373
Assert.Equal(0, collection.
Add
(group1));
379
Assert.Equal(1, collection.
Add
(group2));
392
Assert.Equal(0, collection.
Add
(group1));
398
Assert.Equal(1, collection.
Add
(group2));
415
Assert.Equal(0, collection.
Add
(group));
434
Assert.Equal(0, collection.
Add
(group1));
448
Assert.Equal(0, collection.
Add
(group1));
449
Assert.Equal(1, collection.
Add
(group2));
451
Assert.Equal(-1, collection.
Add
(group1));
465
otherCollection.
Add
(group);
468
collection.
Add
(group);
480
Assert.Throws<ArgumentNullException>("group", () => collection.
Add
(null));
495
Assert.Throws<ArgumentException>(() => collection.
Add
(group));
560
otherCollection.
Add
(group1);
561
otherCollection.
Add
(group2);
598
collection.
Add
(group);
618
collection.
Add
(group);
646
collection.
Add
(group);
694
collection.
Add
(group);
742
collection.
Add
(new ListViewGroup());
757
collection.
Add
(new ListViewGroup());
805
collection.
Add
(new ListViewGroup());
811
otherCollection.
Add
(group);
832
collection.
Add
(group1);
833
collection.
Add
(group2);
863
collection.
Add
(new ListViewGroup());
996
collection.
Add
(group);
997
collection.
Add
(new ListViewGroup());
998
collection.
Add
(new ListViewGroup());
999
collection.
Add
(new ListViewGroup());
1035
collection.
Add
(group);
1064
Assert.Throws<InvalidOperationException>(() => listView.Groups.
Add
(new ListViewGroup()));
System\Windows\Forms\ListViewGroupConverterTests.cs (5)
39
listViewWithGroups.Groups.
Add
(group);
73
listView.Groups.
Add
(group);
97
listViewWithGroups.Groups.
Add
(new ListViewGroup("name", "header"));
152
listViewWithGroups.Groups.
Add
(group);
268
listViewWithGroups.Groups.
Add
(group);
System\Windows\Forms\ListViewGroupTests.cs (30)
121
listView.Groups.
Add
(group);
157
listView.Groups.
Add
(group);
176
listView.Groups.
Add
(group);
223
listView.Groups.
Add
(group);
295
listView.Groups.
Add
(group);
317
listView.Groups.
Add
(group);
363
listView.Groups.
Add
(group);
427
listView.Groups.
Add
(group);
449
listView.Groups.
Add
(group);
500
listView.Groups.
Add
(group);
549
listView.Groups.
Add
(group);
571
listView.Groups.
Add
(group);
613
listView.Groups.
Add
(group);
677
listView.Groups.
Add
(group);
701
listView.Groups.
Add
(group);
756
listView.Groups.
Add
(group1);
810
listView.Groups.
Add
(group);
832
listView.Groups.
Add
(group);
874
listView.Groups.
Add
(group);
929
listView.Groups.
Add
(group);
953
listView.Groups.
Add
(group);
1008
listView.Groups.
Add
(group1);
1071
listView.Groups.
Add
(group);
1094
listView.Groups.
Add
(group);
1130
listView.Groups.
Add
(group);
1214
listView.Groups.
Add
(group);
1236
listView.Groups.
Add
(group);
1279
listView.Groups.
Add
(group);
1433
listView.Groups.
Add
(listViewGroup);
1448
listView.Groups.
Add
(listViewGroup);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
126
listView.Groups.
Add
(listViewGroup);
System\Windows\Forms\ListViewTests.cs (8)
1928
listView.Groups.
Add
(group1);
1929
listView.Groups.
Add
(group2);
4546
control.Groups.
Add
(group);
4585
control.Groups.
Add
(group1);
4586
control.Groups.
Add
(group2);
4587
control.Groups.
Add
(group3);
4619
control.Groups.
Add
(group);
6190
listView.Groups.
Add
(listViewGroup);
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
55
listView.Groups.
Add
(group);
WinFormsControlsTest (3)
ListViewTest.cs (3)
152
listView1.Groups.
Add
(lvgroup1);
165
listView1.Groups.
Add
(lvgroup2);
192
listView1.Groups.
Add
(lvgroup1);