48 writes to Group
System.Windows.Forms (13)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (13)
135Group = group; 141Group = group; 147Group = group; 153Group = group; 159Group = group; 165Group = group; 171Group = group; 226Group = group; 232Group = group; 238Group = group; 244Group = group; 937newItem.Group = Group; 1044Group = _listView.Groups[_groupName];
System.Windows.Forms.Tests (29)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (16)
90item2.Group = group; 91item.Group = group; 120item2.Group = group; 121item.Group = group; 144item2.Group = group; 145item.Group = group; 275listViewItem1.Group = listViewGroup; 276listViewItem2.Group = createDefaultGroup ? null : listViewGroup; 398listViewItem2.Group = listView.Groups[0]; 521listViewItem2.Group = listView.Groups[0]; 592listViewItem2.Group = listView.Groups[0]; 648listViewItem2.Group = listView.Groups[0]; 728listViewItem1.Group = listView.Groups[0]; 729listViewItem2.Group = listView.Groups[0]; 730listViewItem3.Group = listView.Groups[1]; 862listViewItem2.Group = listView.Groups[0];
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (4)
282listItem1.Group = listGroup; 283listItem2.Group = listGroup; 1331Group = listGroup 1436listViewItem1.Group = listViewGroup;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (7)
1144listItem2.Group = listViewGroup; 1208listItem1.Group = listViewGroup; 1209listItem2.Group = listViewGroup; 1315listView.Items[1].Group = listView.Groups[0]; 1481listView.Items[1].Group = listView.Groups[0]; 1949listViewItem1.Group = lvgroup1; 1950listViewItem2.Group = lvgroup2;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
809listItem2.Group = listViewGroup;
System\Windows\Forms\ListViewTests.cs (1)
6191listItem2.Group = listViewGroup;
System.Windows.Forms.UI.IntegrationTests (3)
ListViewTests.cs (3)
51ListViewItem item1 = new("g1-1") { Group = group }; 52ListViewItem item2 = new("g1-2") { Group = group }; 53ListViewItem item3 = new("g1-3") { Group = group };
WinFormsControlsTest (3)
ListViewTest.cs (3)
156Group = lvgroup1 169Group = lvgroup2 196Group = lvgroup1
45 references to Group
System.Windows.Forms (20)
System\Windows\Forms\Controls\ListView\ListView.cs (5)
3496if (item.Group is not null && Groups.Contains(item.Group)) 3498return item.Group.ID; 3948if (item.Group is null) 6925ListViewGroup? group = selectedItem.Group;
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
57if (item is not null && item.Group is null)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
205if (listViewItem is not null && listViewItem.Group is null)
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
101ListViewGroup? oldGroup = item.Group;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (7)
251ListView owningListView = _listView ?? Group?.ListView 937newItem.Group = Group; 1232else if (entry.Name == nameof(Group)) 1234ListViewGroup group = (ListViewGroup)info.GetValue(nameof(Group), typeof(ListViewGroup))!; 1287if (Group is not null) 1289info.AddValue(nameof(Group), Group);
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (2)
90if (item.Group is not null && item.Group.CollapsedState == ListViewGroupCollapsedState.Collapsed)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
29_owningListView = owningItem.ListView ?? owningItem.Group?.ListView ?? throw new InvalidOperationException(nameof(owningItem.ListView)); 33? _owningItem.Group ?? _owningListView.DefaultGroup
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
27_owningListView = owningItem.ListView ?? owningItem.Group?.ListView ?? throw new InvalidOperationException(nameof(owningItem.ListView));
System.Windows.Forms.Tests (25)
SerializableTypesTests.cs (1)
193Assert.Null(result.Group);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (2)
161? listView.Items[index].Group is not null 1835bool expected = listView.GroupsDisplayed && listView.Items[0].Group?.CollapsedState == ListViewGroupCollapsedState.Collapsed;
System\Windows\Forms\ListViewItemTests.cs (22)
22Assert.Null(item.Group); 61Assert.Equal(group, item.Group); 99Assert.Equal(group, item.Group); 137Assert.Null(item.Group); 175Assert.Null(item.Group); 212Assert.Equal(group, item.Group); 249Assert.Equal(group, item.Group); 287Assert.Equal(group, item.Group); 325Assert.Equal(group, item.Group); 362Assert.Equal(group, item.Group); 400Assert.Equal(group, item.Group); 438Assert.Null(item.Group); 475Assert.Null(item.Group); 513Assert.Equal(group, item.Group); 551Assert.Null(item.Group); 589Assert.Null(item.Group); 626Assert.Equal(group, item.Group); 664Assert.Null(item.Group); 702Assert.Null(item.Group); 739Assert.Equal(group, item.Group); 778Assert.Null(item.Group); 808Assert.Null(item.Group);