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