3 writes to _itemCount
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4048
_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)
2225
InsertItems(
_itemCount
, [.. newItems], checkHosting: false);
3558
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize :
_itemCount
);
4097
if (index ==
_itemCount
- 1)
4111
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)
_itemCount
);
4617
if (
_itemCount
> 0 && listViewItemsToAdd is not null)
4922
for (int i = 0; i <
_itemCount
; i++)
5383
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, VirtualMode ? VirtualListSize :
_itemCount
);
5403
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize :
_itemCount
);
5428
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_itemCount
);
5439
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize :
_itemCount
);
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (10)
27
return _owner.VirtualMode ? _owner.VirtualListSize : _owner.
_itemCount
;
47
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(displayIndex, _owner.
_itemCount
);
82
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner.
_itemCount
);
112
_owner.InsertItems(_owner.
_itemCount
, [value], true);
159
_owner.InsertItems(_owner.
_itemCount
, values, true);
213
if (_owner.
_itemCount
<= 0)
331
count = _owner.
_itemCount
;
403
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner.
_itemCount
);
443
if (_owner.
_itemCount
> 0)
454
ListViewItem[] items = new ListViewItem[_owner.
_itemCount
];