371 references to Groups
Accessibility_Core_App (2)
CommonControl1.cs (2)
46
listView1.
Groups
[0].Items.Add(listView1.Items[0]);
47
listView1.
Groups
[1].Items.AddRange(listView1.Items[1], listView1.Items[2]);
System.Windows.Forms (15)
System\Windows\Forms\Controls\ListView\ListView.cs (7)
3496
if (item.Group is not null &&
Groups
.Contains(item.Group))
3682
foreach (ListViewGroup group in
Groups
)
3979
Debug.Assert(group == DefaultGroup ||
Groups
.Contains(group), "Make sure ListView.Groups contains this group before adding the native LVGROUP. Otherwise, custom-drawing may break.");
4412
if (IsAccessibilityObjectCreated && GroupsEnabled && e.GroupIndex >= 0 && e.GroupIndex <
Groups
.Count)
4414
ListViewGroup listViewGroup =
Groups
[e.GroupIndex];
5058
foreach (ListViewGroup group in
Groups
)
6935
OnGroupCollapsedStateChanged(new ListViewGroupEventArgs(
Groups
.IndexOf(group)));
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
272
foreach (ListViewGroup listViewGroup in owningListView.
Groups
)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
78
=> _accessibilityObject ??= new ListViewGroupAccessibleObject(this, ListView?.
Groups
.Contains(this) == false);
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (2)
85
? _owningListView.
Groups
.IndexOf(_owningGroup) + 1
86
: _owningListView.
Groups
.IndexOf(_owningGroup);
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (2)
62
foreach (ListViewGroup group in item.ListView.
Groups
)
118
foreach (ListViewGroup group in item.ListView.
Groups
)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
1044
Group = _listView.
Groups
[_groupName];
1147
foreach (ListViewGroup lvg in ListView!.
Groups
)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ListViewActionList.cs (1)
28
EditorServiceContext.EditValue(_designer, Component!, nameof(ListView.
Groups
));
System.Windows.Forms.Tests (346)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (74)
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"));
398
listViewItem2.Group = listView.
Groups
[0];
454
listView.
Groups
.Add(new ListViewGroup("Test Group"));
520
listView.
Groups
.Add(new ListViewGroup("Test Group"));
521
listViewItem2.Group = listView.
Groups
[0];
557
Assert.Equal(listView.
Groups
[0].AccessibilityObject, accessibleObject.GetChild(1));
591
listView.
Groups
.Add(new ListViewGroup("Test Group"));
592
listViewItem2.Group = listView.
Groups
[0];
646
listView.
Groups
.Add(new ListViewGroup("Test Group 1"));
647
listView.
Groups
.Add(new ListViewGroup("Test Group 2"));
648
listViewItem2.Group = listView.
Groups
[0];
685
Assert.Equal(1, accessibleObject.GetChildIndex(listView.
Groups
[0].AccessibilityObject));
686
Assert.Equal(-1, accessibleObject.GetChildIndex(listView.
Groups
[1].AccessibilityObject));
726
listView.
Groups
.Add(new ListViewGroup("Test Group 1"));
727
listView.
Groups
.Add(new ListViewGroup("Test Group 2"));
728
listViewItem1.Group = listView.
Groups
[0];
729
listViewItem2.Group = listView.
Groups
[0];
730
listViewItem3.Group = listView.
Groups
[1];
767
Assert.Equal(0, accessibleObject.GetChildIndex(listView.
Groups
[0].AccessibilityObject));
768
Assert.Equal(1, accessibleObject.GetChildIndex(listView.
Groups
[1].AccessibilityObject));
804
listView.
Groups
.Add(new ListViewGroup("Test Group 1"));
805
listView.
Groups
[0].Items.Add(new ListViewItem());
806
listView.
Groups
.Add(new ListViewGroup("Test Group 2"));
830
Assert.Equal(-1, accessibleObject.GetChildIndex(listView.
Groups
[0].AccessibilityObject));
831
Assert.Equal(-1, accessibleObject.GetChildIndex(listView.
Groups
[1].AccessibilityObject));
832
Assert.Equal(-1, accessibleObject.GetChildIndex(listView.
Groups
[0].Items[0].AccessibilityObject));
860
listView.
Groups
.Add(new ListViewGroup("Test Group 1"));
861
listView.
Groups
.Add(new ListViewGroup("Test Group 2"));
862
listViewItem2.Group = listView.
Groups
[0];
928
listView.
Groups
.Add(listGroup1);
929
listView.
Groups
.Add(listGroup2);
1315
expectedValues.Add(listView.
Groups
[0].AccessibilityObject);
1370
? listView.
Groups
[0].AccessibilityObject
1399
listView.
Groups
.Add(listViewGroup);
1454
ListViewGroup listViewGroupWithItems1 = listView.
Groups
[1];
1455
ListViewGroup listViewGroupWithItems2 = listView.
Groups
[2];
1482
Assert.Equal(listView.
Groups
[1].AccessibilityObject,
1485
Assert.Equal(listView.
Groups
[2].AccessibilityObject,
1492
listView.
Groups
[0].Items.Add(listViewItem1);
1493
listView.
Groups
[3].Items.Add(listViewItem2);
1495
Assert.Equal(listView.
Groups
[0].AccessibilityObject,
1498
Assert.Equal(listView.
Groups
[3].AccessibilityObject,
1519
Assert.Equal(listView.
Groups
[1].AccessibilityObject,
1522
Assert.Equal(listView.
Groups
[2].AccessibilityObject,
1525
listView.
Groups
[1].Items.RemoveAt(0);
1526
listView.
Groups
[2].Items.RemoveAt(0);
1577
listView.
Groups
[0].Items.Add(listViewItem1);
1578
listView.
Groups
[3].Items.Add(listViewItem2);
1601
listView.
Groups
[1].Items.RemoveAt(0);
1602
listView.
Groups
[2].Items.RemoveAt(0);
1624
listView.
Groups
[1].TestAccessor().Dynamic._accessibilityObject = new AccessibleObject();
1643
ListViewGroup listViewGroupWithItems1 = listView.
Groups
[1];
1644
ListViewGroup listViewGroupWithItems2 = listView.
Groups
[2];
1669
Assert.Equal(listView.
Groups
[1].AccessibilityObject, accessibleObject.GetChild(0));
1670
Assert.Equal(listView.
Groups
[2].AccessibilityObject, accessibleObject.GetChild(1));
1678
listView.
Groups
[0].Items.Add(listViewItem1);
1679
listView.
Groups
[3].Items.Add(listViewItem2);
1681
Assert.Equal(listView.
Groups
[0].AccessibilityObject, accessibleObject.GetChild(0));
1682
Assert.Equal(listView.
Groups
[1].AccessibilityObject, accessibleObject.GetChild(1));
1683
Assert.Equal(listView.
Groups
[2].AccessibilityObject, accessibleObject.GetChild(2));
1684
Assert.Equal(listView.
Groups
[3].AccessibilityObject, accessibleObject.GetChild(3));
1703
Assert.Equal(listView.
Groups
[1].AccessibilityObject, accessibleObject.GetChild(0));
1704
Assert.Equal(listView.
Groups
[2].AccessibilityObject, accessibleObject.GetChild(1));
1708
listView.
Groups
[1].Items.RemoveAt(0);
1709
listView.
Groups
[2].Items.RemoveAt(0);
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 (87)
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);
141
ListViewGroupCollection groups = listView.
Groups
;
186
Assert.Null(listView.
Groups
[0].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
187
Assert.Null(listView.
Groups
[0].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_NextSibling));
188
Assert.Null(listView.
Groups
[0].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling));
189
Assert.Null(listView.
Groups
[0].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
190
Assert.Null(listView.
Groups
[0].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
192
Assert.Null(listView.
Groups
[1].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
193
Assert.Null(listView.
Groups
[1].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_NextSibling));
194
Assert.Null(listView.
Groups
[1].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling));
195
Assert.Null(listView.
Groups
[1].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
196
Assert.Null(listView.
Groups
[1].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
211
ListViewGroupCollection groups = listView.
Groups
;
241
Assert.Equal(listView.AccessibilityObject, listView.
Groups
[1].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
281
list.
Groups
.Add(listGroup);
327
listView.
Groups
.Add(group);
374
ListViewGroupCollection groups = listView.
Groups
;
469
ListViewGroupCollection groups = listView.
Groups
;
505
ListViewGroupCollection groups = listView.
Groups
;
589
ListViewGroupCollection groups = listView.
Groups
;
712
listView.
Groups
.Add(lvgroup1);
721
listView.
Groups
.Add(lvgroup2);
746
listView.
Groups
.Add(listViewGroup);
796
listView.
Groups
.AddRange((ListViewGroup[])[group1, group2, group3]);
859
AccessibleObject listViewGroupWithItems1 = listView.
Groups
[1].AccessibilityObject;
860
AccessibleObject listViewGroupWithItems2 = listView.
Groups
[2].AccessibilityObject;
893
listView.
Groups
[0].Items.Add(listViewItem1);
894
listView.
Groups
[3].Items.Add(listViewItem2);
906
AccessibleObject GetAccessibleObject(int index) => listView.
Groups
[index].AccessibilityObject;
923
AccessibleObject listViewGroupWithItems1 = listView.
Groups
[1].AccessibilityObject;
924
AccessibleObject listViewGroupWithItems2 = listView.
Groups
[2].AccessibilityObject;
931
listView.
Groups
[2].Items.RemoveAt(0);
951
AccessibleObject accessibleObject = listView.
Groups
[0].AccessibilityObject;
953
Assert.Equal(listView.
Groups
[0].Items[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
954
Assert.Equal(listView.
Groups
[0].Items[2].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
971
AccessibleObject accessibleObject = listView.
Groups
[0].AccessibilityObject;
973
Assert.Equal(listView.
Groups
[0].Items[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
974
Assert.Equal(listView.
Groups
[0].Items[2].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
976
listView.Items.Add(listView.
Groups
[0].Items[0]);
977
listView.Items.Add(listView.
Groups
[0].Items[3]);
979
Assert.Equal(listView.
Groups
[0].Items[0].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
980
Assert.Equal(listView.
Groups
[0].Items[3].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
997
AccessibleObject accessibleObject = listView.
Groups
[0].AccessibilityObject;
999
Assert.Equal(listView.
Groups
[0].Items[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
1000
Assert.Equal(listView.
Groups
[0].Items[2].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
1004
Assert.Equal(listView.
Groups
[0].Items[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
1005
Assert.Equal(listView.
Groups
[0].Items[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
1022
AccessibleObject accessibleObject = listView.
Groups
[0].AccessibilityObject;
1041
AccessibleObject accessibleObject = listView.
Groups
[0].AccessibilityObject;
1045
listView.Items.Add(listView.
Groups
[0].Items[0]);
1046
listView.Items.Add(listView.
Groups
[0].Items[3]);
1065
AccessibleObject accessibleObject = listView.
Groups
[0].AccessibilityObject;
1092
AccessibleObject accessibleObject = listView.
Groups
[0].AccessibilityObject;
1094
Assert.Equal(listView.
Groups
[0].Items[1].AccessibilityObject, accessibleObject.GetChild(0));
1095
Assert.Equal(listView.
Groups
[0].Items[2].AccessibilityObject, accessibleObject.GetChild(1));
1113
AccessibleObject accessibleObject = listView.
Groups
[0].AccessibilityObject;
1115
listView.Items.Add(listView.
Groups
[0].Items[0]);
1116
listView.Items.Add(listView.
Groups
[0].Items[3]);
1118
Assert.Equal(listView.
Groups
[0].Items[0].AccessibilityObject, accessibleObject.GetChild(0));
1119
Assert.Equal(listView.
Groups
[0].Items[1].AccessibilityObject, accessibleObject.GetChild(1));
1120
Assert.Equal(listView.
Groups
[0].Items[2].AccessibilityObject, accessibleObject.GetChild(2));
1121
Assert.Equal(listView.
Groups
[0].Items[3].AccessibilityObject, accessibleObject.GetChild(3));
1139
AccessibleObject accessibleObject = listView.
Groups
[0].AccessibilityObject;
1143
Assert.Equal(listView.
Groups
[0].Items[1].AccessibilityObject, accessibleObject.GetChild(0));
1159
listView.
Groups
.Add(listViewGroup);
1179
Assert.Equal(showBounds, !listView.
Groups
[0].AccessibilityObject.Bounds.IsEmpty);
1200
Assert.True(listViewBounds.Contains(listView.
Groups
[0].AccessibilityObject.Bounds));
1219
listView.
Groups
.Add(new ListViewGroup());
1223
Assert.True(listView.
Groups
[0].AccessibilityObject.Bounds.IsEmpty);
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);
1371
listView.
Groups
.Clear();
1382
listView.
Groups
.Add(group);
1385
listView.
Groups
.Remove(group);
1407
listView.
Groups
.Add(listViewGroup);
1435
listView.
Groups
.Add(listViewGroup);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (29)
79
listView.
Groups
.Add(listviewGroup);
162
? listView.
Groups
[0].AccessibilityObject
967
AccessibleObject GetAccessibleObject(int index) => listView.
Groups
[0].Items[index].AccessibilityObject;
989
listView.Items.Add(listView.
Groups
[0].Items[0]);
990
listView.Items.Add(listView.
Groups
[0].Items[3]);
1002
AccessibleObject GetAccessibleObject(int index) => listView.
Groups
[0].Items[index].AccessibilityObject;
1025
AccessibleObject GetAccessibleObject(int index) => listView.
Groups
[0].Items[index].AccessibilityObject;
1145
listView.
Groups
.Add(listViewGroup);
1205
listView.
Groups
.Add(listViewGroup);
1262
listView.
Groups
.Add(listViewGroup);
1314
listView.
Groups
.Add(new ListViewGroup());
1315
listView.Items[1].Group = listView.
Groups
[0];
1321
Assert.Equal(listView.
Groups
[0].AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
1348
listView.
Groups
.Add(new ListViewGroup());
1351
listView.Items.Add(new ListViewItem("Item 2", group: listView.
Groups
[0]));
1365
Assert.Equal(listView.
Groups
[0].AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
1373
listView.
Groups
.RemoveAt(0);
1406
listView.
Groups
.Add(new ListViewGroup());
1409
listView.Items.Add(new ListViewItem("Item 2", group: listView.
Groups
[0]));
1423
Assert.Equal(listView.
Groups
[0].AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
1431
listView.
Groups
[0].Items.Insert(0, listView.Items[0]);
1433
Assert.Equal(listView.
Groups
[0].AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
1437
Assert.Equal(listView.
Groups
[0].AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
1480
listView.
Groups
.Add(new ListViewGroup());
1481
listView.Items[1].Group = listView.
Groups
[0];
1497
listView.
Groups
[0].Items.Insert(0, listView.Items[0]);
1513
listView.
Groups
.RemoveAt(0);
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 (80)
14
IList collection = listView.
Groups
;
26
ListViewGroupCollection collection = listView.
Groups
;
39
ListViewGroupCollection collection = listView.
Groups
;
48
ListViewGroupCollection collection = listView.
Groups
;
63
ListViewGroupCollection collection = listView.
Groups
;
78
ListViewGroupCollection collection = listView.
Groups
;
99
ListViewGroupCollection collection = listView.
Groups
;
119
ListViewGroupCollection collection = listView.
Groups
;
134
ListViewGroupCollection collection = listView.
Groups
;
138
ListViewGroupCollection otherCollection = otherListView.
Groups
;
154
ListViewGroupCollection collection = listView.
Groups
;
173
ListViewGroupCollection collection = listView.
Groups
;
184
ListViewGroupCollection collection = listView.
Groups
;
193
IList collection = listView.
Groups
;
206
IList collection = listView.
Groups
;
215
IList collection = listView.
Groups
;
227
IList collection = listView.
Groups
;
244
IList collection = listView.
Groups
;
255
IList collection = listView.
Groups
;
265
ListViewGroupCollection collection = listView.
Groups
;
286
ListViewGroupCollection collection = listView.
Groups
;
302
ListViewGroupCollection collection = listView.
Groups
;
312
ListViewGroupCollection collection = listView.
Groups
;
335
ListViewGroupCollection collection = listView.
Groups
;
354
ListViewGroupCollection collection = listView.
Groups
;
363
ListViewGroupCollection collection = listView.
Groups
;
371
ListViewGroupCollection collection = listView.
Groups
;
390
ListViewGroupCollection collection = listView.
Groups
;
409
ListViewGroupCollection collection = listView.
Groups
;
428
ListViewGroupCollection collection = listView.
Groups
;
445
ListViewGroupCollection collection = listView.
Groups
;
459
ListViewGroupCollection collection = listView.
Groups
;
462
ListViewGroupCollection otherCollection = otherListView.
Groups
;
479
ListViewGroupCollection collection = listView.
Groups
;
487
ListViewGroupCollection collection = listView.
Groups
;
506
ListViewGroupCollection collection = listView.
Groups
;
518
IList collection = listView.
Groups
;
531
IList collection = listView.
Groups
;
539
ListViewGroupCollection collection = listView.
Groups
;
554
ListViewGroupCollection collection = listView.
Groups
;
556
ListViewGroupCollection otherCollection = listView.
Groups
;
577
ListViewGroupCollection collection = listView.
Groups
;
586
ListViewGroupCollection collection = listView.
Groups
;
596
ListViewGroupCollection collection = listView.
Groups
;
616
ListViewGroupCollection collection = listView.
Groups
;
634
ListViewGroupCollection collection = listView.
Groups
;
644
ListViewGroupCollection collection = listView.
Groups
;
657
ListViewGroupCollection collection = listView.
Groups
;
667
IList collection = listView.
Groups
;
681
IList collection = listView.
Groups
;
692
ListViewGroupCollection collection = listView.
Groups
;
705
ListViewGroupCollection collection = listView.
Groups
;
715
IList collection = listView.
Groups
;
729
IList collection = listView.
Groups
;
740
ListViewGroupCollection collection = listView.
Groups
;
755
ListViewGroupCollection collection = listView.
Groups
;
770
ListViewGroupCollection collection = listView.
Groups
;
789
ListViewGroupCollection collection = listView.
Groups
;
804
ListViewGroupCollection collection = listView.
Groups
;
808
ListViewGroupCollection otherCollection = otherListView.
Groups
;
828
ListViewGroupCollection collection = listView.
Groups
;
843
ListViewGroupCollection collection = listView.
Groups
;
862
ListViewGroupCollection collection = listView.
Groups
;
873
ListViewGroupCollection collection = listView.
Groups
;
881
IList collection = listView.
Groups
;
896
IList collection = listView.
Groups
;
908
IList collection = listView.
Groups
;
916
IList collection = listView.
Groups
;
940
IList collection = listView.
Groups
;
962
IList collection = listView.
Groups
;
982
IList collection = listView.
Groups
;
994
ListViewGroupCollection collection = listView.
Groups
;
1025
ListViewGroupCollection collection = listView.
Groups
;
1033
ListViewGroupCollection collection = listView.
Groups
;
1046
ListViewGroupCollection collection = listView.
Groups
;
1064
Assert.Throws<InvalidOperationException>(() => listView.
Groups
.Add(new ListViewGroup()));
1080
Assert.Throws<InvalidOperationException>(() => listView.
Groups
.Add(key: "key", headerText: "text"));
1096
Assert.Throws<InvalidOperationException>(() => listView.
Groups
.AddRange((ListViewGroup[])[new(), new()]));
1115
Assert.Throws<InvalidOperationException>(() => listView.
Groups
.AddRange(sourceGroup));
1131
Assert.Throws<InvalidOperationException>(() => listView.
Groups
.Insert(0, 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 (32)
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);
1074
Assert.Equal(group.CollapsedState, listView.
Groups
[0].CollapsedState);
1080
Assert.Equal(group.CollapsedState, listView.
Groups
[0].CollapsedState);
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 (37)
84
Assert.Empty(control.
Groups
);
85
Assert.Same(control.
Groups
, control.
Groups
);
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);
4599
Assert.Equal(control.
Groups
[expectedGroupIndex], control.FocusedGroup);
4619
control.
Groups
.Add(group);
5652
listView.
Groups
.AddRange(groups);
5659
Assert.Equal(3, listView.
Groups
.Count);
5663
listView.
Groups
.Remove(listView.
Groups
[2]);
5667
Assert.Equal(2, listView.
Groups
.Count);
5672
listView.
Groups
.Remove(listView.
Groups
[1]);
5676
Assert.Single(listView.
Groups
);
5690
listView.
Groups
.AddRange(groups);
5702
Assert.Equal(count, listView.
Groups
.Count);
5707
listView.
Groups
.Remove(listView.
Groups
[0]);
5712
Assert.Equal(count, listView.
Groups
.Count);
5727
listView.
Groups
.AddRange(groups);
5738
listView.
Groups
.Remove(listView.
Groups
[2]);
5742
Assert.Equal(2, listView.
Groups
.Count);
5746
listView.
Groups
.Remove(listView.
Groups
[1]);
5750
Assert.Single(listView.
Groups
);
5763
listView.
Groups
.AddRange(groups);
5775
Assert.Equal(count, listView.
Groups
.Count);
5780
listView.
Groups
.Remove(listView.
Groups
[0]);
5785
Assert.Equal(count, listView.
Groups
.Count);
6190
listView.
Groups
.Add(listViewGroup);
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
55
listView.
Groups
.Add(group);
WinFormsControlsTest (6)
ListViewTest.cs (5)
152
listView1.
Groups
.Add(lvgroup1);
165
listView1.
Groups
.Add(lvgroup2);
182
listView1.
Groups
[0].TaskLink = "Task";
183
listView1.
Groups
[0].Subtitle = "Subtitle";
192
listView1.
Groups
.Add(lvgroup1);
ListViewTest.Designer.cs (1)
70
this.listView1.
Groups
.AddRange(new System.Windows.Forms.ListViewGroup[] {