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