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