30 references to SelectedItems
System.Windows.Forms (10)
System\Windows\Forms\Controls\ListView\ListView.cs (10)
1925if (value && SelectedItems.Count > 0) 4673if (SelectedItems is not null && !VirtualMode) 4676ListViewItem[] lviArr = new ListViewItem[SelectedItems.Count]; 4677SelectedItems.CopyTo(lviArr, 0); 5846foreach (ListViewItem item in SelectedItems) 6691if ((lvkd->wVKey == (short)Keys.Down || lvkd->wVKey == (short)Keys.Up) && SelectedItems.Count > 0) 6693AccessibleObject accessibleObject = SelectedItems[0].AccessibilityObject; 6723foreach (ListViewItem item in SelectedItems) 6919if (GroupsDisplayed && (key is VIRTUAL_KEY.VK_LEFT or VIRTUAL_KEY.VK_RIGHT) && SelectedItems.Count > 0) 6923foreach (ListViewItem selectedItem in SelectedItems)
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\MaskDesignerDialog.cs (3)
486if (_listViewCannedMasks.SelectedItems.Count > 0) 615if (_listViewCannedMasks.SelectedItems.Count == 0) 709if (_listViewCannedMasks.SelectedItems.Count != 0)
System.Windows.Forms.Tests (17)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
752AccessibleObject accessibleObject = listView.SelectedItems[0].AccessibilityObject; 841Assert.Equal(3, listView.SelectedItems.Count);
System\Windows\Forms\ListViewTests.cs (15)
127Assert.Empty(control.SelectedItems); 128Assert.Same(control.SelectedItems, control.SelectedItems); 4485Assert.Empty(control.SelectedItems); 4522Assert.Equal(selectItems ? 2 : 0, control.SelectedItems.Count); 5534Assert.Single(listView.SelectedItems); 5541Assert.Single(listView.SelectedItems); 5549Assert.Single(listView.SelectedItems); 5570Assert.Single(listView.SelectedItems); 5579Assert.Empty(listView.SelectedItems); 5660Assert.Single(listView.SelectedItems); 5668Assert.Single(listView.SelectedItems); 5677Assert.Single(listView.SelectedItems); 5704Assert.Equal(selectedCount, listView.SelectedItems.Count); 5714Assert.Equal(selectedCount, listView.SelectedItems.Count);