Implemented interface member:
12 references to Count
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
840if (_itemsCollection is not null && SelectedItems.Count > 0) 939if (SelectedItems.Count > 0) 1791if (_selectedItems.Count > 0 && _selectionMode == SelectionMode.One)
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (1)
28return _owner.SelectedItems.Count;
System.Windows.Forms.Design (8)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
822if (_listBox.SelectedItems.Count > 1) 1058items = new object[_listBox.SelectedItems.Count]; 1065int selectedItemCount = _listBox.SelectedItems.Count;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (5)
494ToolStripItem[] items = new ToolStripItem[_listBoxItems.SelectedItems.Count]; 801object[] selectedItems = new object[_listBoxItems.SelectedItems.Count]; 829_btnMoveUp.Enabled = (_listBoxItems.SelectedItems.Count == 1) && (_listBoxItems.SelectedIndex > 1); 830_btnMoveDown.Enabled = (_listBoxItems.SelectedItems.Count == 1) && (_listBoxItems.SelectedIndex < _listBoxItems.Items.Count - 1); 876switch (_listBoxItems.SelectedItems.Count)