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