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