3 writes to _itemCount
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4044_itemCount++;
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (2)
299_owner._itemCount = 0; 432_owner._itemCount--;
20 references to _itemCount
System.Windows.Forms (20)
System\Windows\Forms\Controls\ListView\ListView.cs (10)
2221InsertItems(_itemCount, [.. newItems], checkHosting: false); 3554ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize : _itemCount); 4093if (index == _itemCount - 1) 4107PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)_itemCount); 4613if (_itemCount > 0 && listViewItemsToAdd is not null) 4918for (int i = 0; i < _itemCount; i++) 5379ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, VirtualMode ? VirtualListSize : _itemCount); 5399ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize : _itemCount); 5424ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _itemCount); 5435ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize : _itemCount);
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (10)
27return _owner.VirtualMode ? _owner.VirtualListSize : _owner._itemCount; 47ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(displayIndex, _owner._itemCount); 82ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner._itemCount); 112_owner.InsertItems(_owner._itemCount, [value], true); 159_owner.InsertItems(_owner._itemCount, values, true); 213if (_owner._itemCount <= 0) 331count = _owner._itemCount; 403ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner._itemCount); 443if (_owner._itemCount > 0) 454ListViewItem[] items = new ListViewItem[_owner._itemCount];