39 writes to VirtualListSize
System.Windows.Forms.Tests (35)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (14)
262
VirtualListSize
= 2,
343
VirtualListSize
= 0,
385
VirtualListSize
= 3,
446
VirtualListSize
= 0,
508
VirtualListSize
= 3,
579
VirtualListSize
= 3,
634
VirtualListSize
= 3,
714
VirtualListSize
= 3,
796
VirtualListSize
= 0,
848
VirtualListSize
= 3,
1010
VirtualListSize
= 4
1056
VirtualListSize
= 1
1087
VirtualListSize
= 1
1387
VirtualListSize
= 4,
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
661
VirtualListSize
= 1,
1424
VirtualListSize
= 2,
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (8)
563
listView.
VirtualListSize
= 1;
696
VirtualListSize
= 1
838
VirtualListSize
= 1,
886
VirtualListSize
= 1,
921
VirtualListSize
= 1,
1135
VirtualListSize
= 2
1194
VirtualListSize
= 4
1925
VirtualListSize
= 3
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
799
VirtualListSize
= 2
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
814
VirtualListSize
= virtualListSize,
System\Windows\Forms\ListViewTests.cs (9)
4383
VirtualListSize
= 1
4418
VirtualListSize
= 1,
4615
VirtualListSize
= 2 // we can't add items, just indicate how many we have
4647
VirtualListSize
= 2 // we can't add items, just indicate how many we have
4716
VirtualListSize
= 1
4791
VirtualListSize
= 1
5253
VirtualListSize
= 1
5279
VirtualListSize
= 2
6181
VirtualListSize
= 2
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
539
listView.
VirtualListSize
= 3;
WinFormsControlsTest (3)
ListViewTest.cs (1)
75
VirtualListSize
= 3,
ListViewTest.Designer.cs (1)
94
this.listView3.
VirtualListSize
= 3;
MultipleControls.cs (1)
40
VirtualListSize
= 3,
15 references to VirtualListSize
System.Windows.Forms (14)
System\Windows\Forms\Controls\ListView\ListView.cs (11)
1886
topIndex = Math.Min(topIndex,
VirtualListSize
- 1);
3558
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ?
VirtualListSize
: _itemCount);
4622
if (VirtualMode &&
VirtualListSize
> -1 && !DesignMode)
4624
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)
VirtualListSize
);
4982
int maxSize = VirtualMode ?
VirtualListSize
: Items.Count;
5383
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, VirtualMode ?
VirtualListSize
: _itemCount);
5403
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ?
VirtualListSize
: _itemCount);
5439
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ?
VirtualListSize
: _itemCount);
6602
if (
VirtualListSize
> 0)
6604
ListViewVirtualItemsSelectionRangeChangedEventArgs lvvisrce = new(0,
VirtualListSize
- 1, newState != 0);
6869
if (startIndex >=
VirtualListSize
)
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (1)
27
return _owner.VirtualMode ? _owner.
VirtualListSize
: _owner._itemCount;
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (2)
260
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, _owner.
VirtualListSize
);
320
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, _owner.
VirtualListSize
);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListViewTests.cs (1)
148
Assert.Equal(0, control.
VirtualListSize
);