15 references to Count
System.Windows.Forms (15)
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
193if (index < 0 || index >= owner.Items.Count || owner.Items.InnerArray.Count == 0)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (7)
53public int Count => InnerArray.Count; 211ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerArray.Count); 275int count = InnerArray.Count; 286int count = InnerArray.Count; 328ArgumentOutOfRangeException.ThrowIfGreaterThan(index, InnerArray.Count); 390ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerArray.Count); 414ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerArray.Count);
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (1)
88selectedIndex < InnerArray.Count &&
System\Windows\Forms\Internal\ItemArray.cs (3)
88for (int i = 0; i < Count; i++) 116return Count; 288return _entries.BinarySearch(index: 0, Count, element, this);
System\Windows\Forms\Internal\ItemArray.EntryEnumerator.cs (3)
46if (_current < _items.Count - 1) 69_current = _items.Count; 95if (_current == -1 || _current == _items.Count)