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