121 references to Items
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 (1)
5073foreach (ListViewItem item in group.Items)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (4)
387Items.AddRange(items); 468info.AddValue("ItemsCount", Items.Count); 469for (int i = 0; i < Items.Count; i++) 471info.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 214foreach (ListViewItem listViewItem in _owningGroup.Items)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (3)
175for (int i = 0; i < group.Items.Count; i++) 177ListViewItem item = group.Items[i]; 269foreach (ListViewItem item in group.Items)
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
105oldGroup?.Items.Remove(item);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
447value.Items.Add(this); 451_group!.Items.Remove(this); 1168_group.Items.Remove(this);
System.Windows.Forms.Tests (104)
SerializableTypesTests.cs (2)
132listViewGroup.Items.Add(new ListViewItem("Item")); 149var item = Assert.Single(result.Items) as ListViewItem;
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (17)
805listView.Groups[0].Items.Add(new ListViewItem()); 832Assert.Equal(-1, accessibleObject.GetChildIndex(listView.Groups[0].Items[0].AccessibilityObject)); 1492listView.Groups[0].Items.Add(listViewItem1); 1493listView.Groups[3].Items.Add(listViewItem2); 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); 1678listView.Groups[0].Items.Add(listViewItem1); 1679listView.Groups[3].Items.Add(listViewItem2); 1708listView.Groups[1].Items.RemoveAt(0); 1709listView.Groups[2].Items.RemoveAt(0); 1735listViewGroupWithItems1.Items.Add(listViewItem1); 1736listViewGroupWithItems2.Items.Add(listViewItem2); 1737listViewGroupWithInvisibleItems.Items.Add(listViewItem3);
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (37)
21listGroup.Items.Add(new ListViewItem()); 39listGroup.Items.Add(new ListViewItem()); 54listGroup.Items.Add(new ListViewItem()); 85listGroup.Items.Add(new ListViewItem()); 118listGroup.Items.Add(new ListViewItem()); 750listViewGroup.Items[0].Selected = true; 751listViewGroup.Items[0].Focused = true; 893listView.Groups[0].Items.Add(listViewItem1); 894listView.Groups[3].Items.Add(listViewItem2); 931listView.Groups[2].Items.RemoveAt(0); 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)); 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)); 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)); 1045listView.Items.Add(listView.Groups[0].Items[0]); 1046listView.Items.Add(listView.Groups[0].Items[3]); 1094Assert.Equal(listView.Groups[0].Items[1].AccessibilityObject, accessibleObject.GetChild(0)); 1095Assert.Equal(listView.Groups[0].Items[2].AccessibilityObject, accessibleObject.GetChild(1)); 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)); 1143Assert.Equal(listView.Groups[0].Items[1].AccessibilityObject, accessibleObject.GetChild(0)); 1244listViewGroupWithItems1.Items.Add(listViewItem1); 1245listViewGroupWithItems2.Items.Add(listViewItem2); 1246listViewGroupWithInvisibleItems.Items.Add(listViewItem3); 1409listViewGroup.Items.AddRange((ListViewItem[])
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (9)
78listviewGroup.Items.Add(listViewItem1); 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; 1264listViewGroup.Items.AddRange((ListViewItem[]) 1431listView.Groups[0].Items.Insert(0, listView.Items[0]); 1497listView.Groups[0].Items.Insert(0, listView.Items[0]);
System\Windows\Forms\ListViewGroupCollectionTests.cs (15)
82group.Items.Add(new ListViewItem()); 83group.Items.Add(item); 103group.Items.Add(new ListViewItem()); 104group.Items.Add(item); 161group.Items.Add(item); 411group.Items.Add(new ListViewItem()); 412group.Items.Add(item); 430group1.Items.Add(new ListViewItem()); 431group1.Items.Add(item); 492group.Items.Add(item); 772group.Items.Add(new ListViewItem()); 773group.Items.Add(item); 791group.Items.Add(new ListViewItem()); 792group.Items.Add(item); 848group.Items.Add(item);
System\Windows\Forms\ListViewGroupTests.cs (21)
23Assert.Empty(group.Items); 24Assert.Same(group.Items, group.Items); 44Assert.Empty(group.Items); 45Assert.Same(group.Items, group.Items); 74Assert.Empty(group.Items); 75Assert.Equal(group.Items, group.Items); 102Assert.Empty(group.Items); 103Assert.Same(group.Items, group.Items); 1325Assert.Empty(groupWithEmptyItems.Items); 1329groupWithItems.Items.Add(new ListViewItem("text")); 1350Assert.Equal(group.Items.Cast<ListViewItem>().Select(i => i.Text), result.Items.Cast<ListViewItem>().Select(i => i.Text)); 1383Assert.Empty(group.Items); 1401group.Items.Add(new ListViewItem("text")); 1435listViewGroup.Items.Add(listViewItemGroup); 1450listViewGroup.Items.Add(listViewItem); 1454listViewGroup.Items.Remove(listViewItem);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
128listViewGroup.Items.Add(listViewItem);
System\Windows\Forms\ListViewTests.cs (2)
4542group.Items.Add(item1); 4543group.Items.Add(item2);