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