Implemented interface member:
29 references to Count
System.Windows.Forms (9)
System\Windows\Forms\Controls\ListView\ListView.cs (4)
1921if (value && SelectedItems.Count > 0) 4672ListViewItem[] lviArr = new ListViewItem[SelectedItems.Count]; 6687if ((lvkd->wVKey == (short)Keys.Down || lvkd->wVKey == (short)Keys.Up) && SelectedItems.Count > 0) 6915if (GroupsDisplayed && (key is VIRTUAL_KEY.VK_LEFT or VIRTUAL_KEY.VK_RIGHT) && SelectedItems.Count > 0)
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (5)
122ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 247return (index >= 0) && (index < Count); 326if (Count > 0) 328Array.Copy(SelectedItemArray, 0, dest, index, Count); 412for (int i = 0; i < Count; i++)
System.Windows.Forms.Design (7)
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\Design\StyleEditorForm.cs (4)
638if (coll.Count == 0) 655_removeButton.Enabled = coll.Count != _columnsAndRowsListView.Items.Count && _columnsAndRowsListView.Items.Count > 1; 657if (coll.Count == 1) 681for (int i = 1; i < coll.Count; i++)
System.Windows.Forms.Tests (13)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (1)
841Assert.Equal(3, listView.SelectedItems.Count);
System\Windows\Forms\ListViewTests.cs (12)
4485Assert.Equal(0, control.SelectedItems.Count); 4522Assert.Equal(selectItems ? 2 : 0, control.SelectedItems.Count); 5534Assert.Equal(1, listView.SelectedItems.Count); 5541Assert.Equal(1, listView.SelectedItems.Count); 5549Assert.Equal(1, listView.SelectedItems.Count); 5570Assert.Equal(1, listView.SelectedItems.Count); 5579Assert.Equal(0, listView.SelectedItems.Count); 5660Assert.Equal(1, listView.SelectedItems.Count); 5668Assert.Equal(1, listView.SelectedItems.Count); 5677Assert.Equal(1, listView.SelectedItems.Count); 5704Assert.Equal(selectedCount, listView.SelectedItems.Count); 5714Assert.Equal(selectedCount, listView.SelectedItems.Count);