121 references to Items
Accessibility_Core_App (2)
CommonControl1.cs (2)
46
listView1.Groups[0].
Items
.Add(listView1.Items[0]);
47
listView1.Groups[1].
Items
.AddRange(listView1.Items[1], listView1.Items[2]);
System.Windows.Forms (15)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5073
foreach (ListViewItem item in group.
Items
)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (4)
387
Items
.AddRange(items);
468
info.AddValue("ItemsCount",
Items
.Count);
469
for (int i = 0; i <
Items
.Count; i++)
471
info.AddValue($"Item{i}",
Items
[i], typeof(ListViewItem));
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (3)
26
?? (owningGroup.
Items
.Count > 0 && _owningGroup.
Items
[0].ListView is ListView listView
214
foreach (ListViewItem listViewItem in _owningGroup.
Items
)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (3)
175
for (int i = 0; i < group.
Items
.Count; i++)
177
ListViewItem item = group.
Items
[i];
269
foreach (ListViewItem item in group.
Items
)
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
105
oldGroup?.
Items
.Remove(item);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
447
value.
Items
.Add(this);
451
_group!.
Items
.Remove(this);
1168
_group.
Items
.Remove(this);
System.Windows.Forms.Tests (104)
SerializableTypesTests.cs (2)
132
listViewGroup.
Items
.Add(new ListViewItem("Item"));
149
var item = Assert.Single(result.
Items
) as ListViewItem;
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (17)
805
listView.Groups[0].
Items
.Add(new ListViewItem());
832
Assert.Equal(-1, accessibleObject.GetChildIndex(listView.Groups[0].
Items
[0].AccessibilityObject));
1492
listView.Groups[0].
Items
.Add(listViewItem1);
1493
listView.Groups[3].
Items
.Add(listViewItem2);
1525
listView.Groups[1].
Items
.RemoveAt(0);
1526
listView.Groups[2].
Items
.RemoveAt(0);
1577
listView.Groups[0].
Items
.Add(listViewItem1);
1578
listView.Groups[3].
Items
.Add(listViewItem2);
1601
listView.Groups[1].
Items
.RemoveAt(0);
1602
listView.Groups[2].
Items
.RemoveAt(0);
1678
listView.Groups[0].
Items
.Add(listViewItem1);
1679
listView.Groups[3].
Items
.Add(listViewItem2);
1708
listView.Groups[1].
Items
.RemoveAt(0);
1709
listView.Groups[2].
Items
.RemoveAt(0);
1735
listViewGroupWithItems1.
Items
.Add(listViewItem1);
1736
listViewGroupWithItems2.
Items
.Add(listViewItem2);
1737
listViewGroupWithInvisibleItems.
Items
.Add(listViewItem3);
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (37)
21
listGroup.
Items
.Add(new ListViewItem());
39
listGroup.
Items
.Add(new ListViewItem());
54
listGroup.
Items
.Add(new ListViewItem());
85
listGroup.
Items
.Add(new ListViewItem());
118
listGroup.
Items
.Add(new ListViewItem());
750
listViewGroup.
Items
[0].Selected = true;
751
listViewGroup.
Items
[0].Focused = true;
893
listView.Groups[0].
Items
.Add(listViewItem1);
894
listView.Groups[3].
Items
.Add(listViewItem2);
931
listView.Groups[2].
Items
.RemoveAt(0);
953
Assert.Equal(listView.Groups[0].
Items
[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
954
Assert.Equal(listView.Groups[0].
Items
[2].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
973
Assert.Equal(listView.Groups[0].
Items
[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
974
Assert.Equal(listView.Groups[0].
Items
[2].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
976
listView.Items.Add(listView.Groups[0].
Items
[0]);
977
listView.Items.Add(listView.Groups[0].
Items
[3]);
979
Assert.Equal(listView.Groups[0].
Items
[0].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
980
Assert.Equal(listView.Groups[0].
Items
[3].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
999
Assert.Equal(listView.Groups[0].
Items
[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
1000
Assert.Equal(listView.Groups[0].
Items
[2].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
1004
Assert.Equal(listView.Groups[0].
Items
[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
1005
Assert.Equal(listView.Groups[0].
Items
[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
1045
listView.Items.Add(listView.Groups[0].
Items
[0]);
1046
listView.Items.Add(listView.Groups[0].
Items
[3]);
1094
Assert.Equal(listView.Groups[0].
Items
[1].AccessibilityObject, accessibleObject.GetChild(0));
1095
Assert.Equal(listView.Groups[0].
Items
[2].AccessibilityObject, accessibleObject.GetChild(1));
1115
listView.Items.Add(listView.Groups[0].
Items
[0]);
1116
listView.Items.Add(listView.Groups[0].
Items
[3]);
1118
Assert.Equal(listView.Groups[0].
Items
[0].AccessibilityObject, accessibleObject.GetChild(0));
1119
Assert.Equal(listView.Groups[0].
Items
[1].AccessibilityObject, accessibleObject.GetChild(1));
1120
Assert.Equal(listView.Groups[0].
Items
[2].AccessibilityObject, accessibleObject.GetChild(2));
1121
Assert.Equal(listView.Groups[0].
Items
[3].AccessibilityObject, accessibleObject.GetChild(3));
1143
Assert.Equal(listView.Groups[0].
Items
[1].AccessibilityObject, accessibleObject.GetChild(0));
1244
listViewGroupWithItems1.
Items
.Add(listViewItem1);
1245
listViewGroupWithItems2.
Items
.Add(listViewItem2);
1246
listViewGroupWithInvisibleItems.
Items
.Add(listViewItem3);
1409
listViewGroup.
Items
.AddRange((ListViewItem[])
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (9)
78
listviewGroup.
Items
.Add(listViewItem1);
967
AccessibleObject GetAccessibleObject(int index) => listView.Groups[0].
Items
[index].AccessibilityObject;
989
listView.Items.Add(listView.Groups[0].
Items
[0]);
990
listView.Items.Add(listView.Groups[0].
Items
[3]);
1002
AccessibleObject GetAccessibleObject(int index) => listView.Groups[0].
Items
[index].AccessibilityObject;
1025
AccessibleObject GetAccessibleObject(int index) => listView.Groups[0].
Items
[index].AccessibilityObject;
1264
listViewGroup.
Items
.AddRange((ListViewItem[])
1431
listView.Groups[0].
Items
.Insert(0, listView.Items[0]);
1497
listView.Groups[0].
Items
.Insert(0, listView.Items[0]);
System\Windows\Forms\ListViewGroupCollectionTests.cs (15)
82
group.
Items
.Add(new ListViewItem());
83
group.
Items
.Add(item);
103
group.
Items
.Add(new ListViewItem());
104
group.
Items
.Add(item);
161
group.
Items
.Add(item);
411
group.
Items
.Add(new ListViewItem());
412
group.
Items
.Add(item);
430
group1.
Items
.Add(new ListViewItem());
431
group1.
Items
.Add(item);
492
group.
Items
.Add(item);
772
group.
Items
.Add(new ListViewItem());
773
group.
Items
.Add(item);
791
group.
Items
.Add(new ListViewItem());
792
group.
Items
.Add(item);
848
group.
Items
.Add(item);
System\Windows\Forms\ListViewGroupTests.cs (21)
23
Assert.Empty(group.
Items
);
24
Assert.Same(group.
Items
, group.
Items
);
44
Assert.Empty(group.
Items
);
45
Assert.Same(group.
Items
, group.
Items
);
74
Assert.Empty(group.
Items
);
75
Assert.Equal(group.
Items
, group.
Items
);
102
Assert.Empty(group.
Items
);
103
Assert.Same(group.
Items
, group.
Items
);
1325
Assert.Empty(groupWithEmptyItems.
Items
);
1329
groupWithItems.
Items
.Add(new ListViewItem("text"));
1350
Assert.Equal(group.
Items
.Cast<ListViewItem>().Select(i => i.Text), result.
Items
.Cast<ListViewItem>().Select(i => i.Text));
1383
Assert.Empty(group.
Items
);
1401
group.
Items
.Add(new ListViewItem("text"));
1435
listViewGroup.
Items
.Add(listViewItemGroup);
1450
listViewGroup.
Items
.Add(listViewItem);
1454
listViewGroup.
Items
.Remove(listViewItem);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
128
listViewGroup.
Items
.Add(listViewItem);
System\Windows\Forms\ListViewTests.cs (2)
4542
group.
Items
.Add(item1);
4543
group.
Items
.Add(item2);