28 references to SelectedIndices
System.Windows.Forms (6)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
4850
if (
SelectedIndices
.Count == 0)
4855
ListViewItem firstSelectedItem = Items[
SelectedIndices
[0]];
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (2)
249
var selectedItemProviders = new IRawElementProviderSimple.Interface[owningListView.
SelectedIndices
.Count];
252
selectedItemProviders[i] = owningListView.Items[owningListView.
SelectedIndices
[i]].AccessibilityObject;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
86
if (_owningListView.
SelectedIndices
.Contains(_owningItem.Index))
270
_owningListView.
SelectedIndices
.Add(CurrentIndex);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\MaskDesignerDialog.cs (3)
488
int selectedIndex = _listViewCannedMasks.
SelectedIndices
[0];
620
int selectedIndex = _listViewCannedMasks.
SelectedIndices
[0];
711
int selectedIndex = _listViewCannedMasks.
SelectedIndices
[0];
System.Windows.Forms.Tests (17)
System\Windows\Forms\ListViewTests.cs (17)
125
Assert.Empty(control.
SelectedIndices
);
126
Assert.Same(control.
SelectedIndices
, control.
SelectedIndices
);
4551
Assert.Empty(control.
SelectedIndices
);
4744
Assert.False(listView.
SelectedIndices
.Contains(-1));
4745
Assert.False(listView.
SelectedIndices
.Contains(1));
4746
Assert.True(listView.
SelectedIndices
.Contains(0));
5535
Assert.Single(listView.
SelectedIndices
);
5542
Assert.Single(listView.
SelectedIndices
);
5550
Assert.Single(listView.
SelectedIndices
);
5571
Assert.Single(listView.
SelectedIndices
);
5580
Assert.Empty(listView.
SelectedIndices
);
5661
Assert.Single(listView.
SelectedIndices
);
5669
Assert.Single(listView.
SelectedIndices
);
5678
Assert.Single(listView.
SelectedIndices
);
5705
Assert.Equal(selectedCount, listView.
SelectedIndices
.Count);
5715
Assert.Equal(selectedCount, listView.
SelectedIndices
.Count);
WinFormsControlsTest (2)
ListViewTest.cs (2)
265
if (listView1.
SelectedIndices
.Count != 1)
281
LargeImageList.Images[listView1.
SelectedIndices
[0]] = bitmap;