83 references to ListViewGroup
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
737
_defaultGroup ??= new
ListViewGroup
(string.Format(SR.ListViewGroupDefaultGroup, "1"))
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (2)
39
public ListViewGroup() :
this
(string.Format(SR.ListViewGroupDefaultHeader, s_nextHeader++))
72
public ListViewGroup(string? header, HorizontalAlignment headerAlignment) :
this
(header)
System.Windows.Forms.Tests (80)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (22)
273
ListViewGroup listViewGroup =
new
("Test Group");
351
ListViewGroup listViewGroup =
new
("Test Group");
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"));
921
ListViewGroup listGroup1 =
new
("Group1");
922
ListViewGroup listGroup2 =
new
("Group2");
923
ListViewGroup listGroup3 =
new
("Group2");
1391
ListViewGroup listViewGroup =
new
("Test");
1722
ListViewGroup listViewGroupWithoutItems =
new
("Group without items");
1723
ListViewGroup listViewGroupWithItems1 =
new
("Group with item 1");
1724
ListViewGroup listViewGroupWithItems2 =
new
("Group with item 2");
1725
ListViewGroup listViewGroupWithInvisibleItems =
new
("Group with invisible item");
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (33)
20
ListViewGroup listGroup =
new
("Group1");
30
ListViewGroup listGroupWithoutList =
new
("Group2");
38
ListViewGroup listGroup =
new
("Group1");
53
ListViewGroup listGroup =
new
("Group1");
84
ListViewGroup listGroup =
new
("Group1");
117
ListViewGroup listGroup =
new
(name) { Subtitle = subtitle };
144
groups.Add(new
ListViewGroup
("Group1"));
145
groups.Add(new
ListViewGroup
("Group2"));
213
groups.Add(new
ListViewGroup
("Group1"));
214
groups.Add(new
ListViewGroup
("Group2"));
278
ListViewGroup listGroup =
new
("Group1");
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"));
665
ListViewGroup listViewGroup =
new
("Test Group");
793
ListViewGroup group1 =
new
("Group 1") { CollapsedState = firstGroupSate };
794
ListViewGroup group2 =
new
("Group 2") { CollapsedState = ListViewGroupCollapsedState.Expanded };
795
ListViewGroup group3 =
new
("Group 3") { CollapsedState = ListViewGroupCollapsedState.Expanded };
1231
ListViewGroup listViewGroupWithoutItems =
new
("Group without items");
1232
ListViewGroup listViewGroupWithItems1 =
new
("Group with item 1");
1233
ListViewGroup listViewGroupWithItems2 =
new
("Group with item 2");
1234
ListViewGroup listViewGroupWithInvisibleItems =
new
("Group with invisible item");
1262
ListViewGroup listGroup1 =
new
("Group1");
1263
ListViewGroup listGroup2 =
new
("Group2");
1323
ListViewGroup listGroup =
new
("Test")
1401
ListViewGroup listViewGroup =
new
("Test group");
1434
ListViewGroup listViewGroup =
new
("Test Group");
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (3)
1143
ListViewGroup listViewGroup =
new
("Test");
1204
ListViewGroup listViewGroup =
new
("Test") { CollapsedState = state };
1256
ListViewGroup listViewGroup =
new
("Test group");
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
807
ListViewGroup listViewGroup =
new
("Test");
System\Windows\Forms\ListViewGroupConverterTests.cs (1)
186
new
ListViewGroup
("header"),
System\Windows\Forms\ListViewGroupTests.cs (2)
38
ListViewGroup group =
new
(header);
1356
ListViewGroup group =
new
(header);
System\Windows\Forms\ListViewTests.cs (18)
4541
ListViewGroup group =
new
("Test group");
4567
ListViewGroup group1 =
new
("Test group1");
4568
ListViewGroup group2 =
new
("Test group2");
4569
ListViewGroup group3 =
new
("Test group3");
4618
ListViewGroup group =
new
("Test group");
5651
var groups = new ListViewGroup[] {
new
("Group 1"),
new
("Group 2"),
new
("Group 3") };
5689
var groups = new ListViewGroup[] {
new
("Group 1"),
new
("Group 2"),
new
("Group 3") };
5726
var groups = new ListViewGroup[] {
new
("Group 1"),
new
("Group 2"),
new
("Group 3") };
5762
var groups = new ListViewGroup[] {
new
("Group 1"),
new
("Group 2"),
new
("Group 3") };
6189
ListViewGroup listViewGroup =
new
("Test");