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)
2221
InsertItems(
_itemCount
, [.. newItems], checkHosting: false);
3554
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize :
_itemCount
);
4093
if (index ==
_itemCount
- 1)
4107
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)
_itemCount
);
4613
if (
_itemCount
> 0 && listViewItemsToAdd is not null)
4918
for (int i = 0; i <
_itemCount
; i++)
5379
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, VirtualMode ? VirtualListSize :
_itemCount
);
5399
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize :
_itemCount
);
5424
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_itemCount
);
5435
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
];