69 writes to VirtualMode
System.Windows.Forms.Tests (65)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (14)
263VirtualMode = virtualMode 344VirtualMode = virtualMode 386VirtualMode = virtualMode 447VirtualMode = virtualMode 509VirtualMode = virtualMode 580VirtualMode = virtualMode 635VirtualMode = virtualMode 715VirtualMode = virtualMode 797VirtualMode = virtualMode 849VirtualMode = virtualMode 1008VirtualMode = true, 1054VirtualMode = true, 1085VirtualMode = true, 1388VirtualMode = virtualMode
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
662VirtualMode = virtualMode 1425VirtualMode = virtualMode,
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (8)
559VirtualMode = true, 695VirtualMode = true, 837VirtualMode = virtualMode, 885VirtualMode = virtualMode, 920VirtualMode = virtualMode, 1134VirtualMode = virtualMode, 1193VirtualMode = virtualMode, 1924VirtualMode = virtualMode,
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
798VirtualMode = virtualMode,
System\Windows\Forms\ListViewGroupCollectionTests.cs (5)
1057using ListView listView = new() { VirtualMode = true }; 1073using ListView listView = new() { VirtualMode = true }; 1089using ListView listView = new() { VirtualMode = true }; 1105using ListView listView = new() { VirtualMode = true }; 1124using ListView listView = new() { VirtualMode = true };
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
815VirtualMode = virtualMode,
System\Windows\Forms\ListViewTests.cs (34)
1562VirtualMode = virtualMode, 1584VirtualMode = virtualMode, 1657VirtualMode = virtualMode, 1743VirtualMode = virtualMode, 2507VirtualMode = virtualMode, 2528VirtualMode = virtualMode, 2601VirtualMode = virtualMode, 2687VirtualMode = virtualMode, 2990VirtualMode = true, 3049VirtualMode = true, 3171VirtualMode = virtualMode, 3192VirtualMode = virtualMode, 3291VirtualMode = virtualMode, 3403VirtualMode = virtualMode, 3536VirtualMode = virtualMode, 3559VirtualMode = virtualMode, 3732VirtualMode = virtualMode, 3919VirtualMode = virtualMode, 4324VirtualMode = false, 4381VirtualMode = true, 4417VirtualMode = true, 4468VirtualMode = true, 4513control.VirtualMode = false; 4545control.VirtualMode = false; 4588control.VirtualMode = false; 4620control.VirtualMode = true; 4646VirtualMode = true, 4714VirtualMode = virtualMode, 4789VirtualMode = virtualMode, 4951using ListView listView = new() { VirtualMode = true }; 4974using ListView listView = new() { VirtualMode = true }; 5252VirtualMode = true, 5278VirtualMode = true, 6180VirtualMode = virtualMode,
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
538listView.VirtualMode = virtualModeEnabled;
WinFormsControlsTest (3)
ListViewTest.cs (1)
74VirtualMode = true,
ListViewTest.Designer.cs (1)
95this.listView3.VirtualMode = true;
MultipleControls.cs (1)
39VirtualMode = true,
94 references to VirtualMode
System.Windows.Forms (91)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (12)
35if (_owner.VirtualMode) 69if (_owner.VirtualMode) 83if (_owner.VirtualMode) 103if (_owner.VirtualMode) 161if (_owner.VirtualMode) 178if (_owner.VirtualMode) 198if (_owner.VirtualMode) 208if (_owner.VirtualMode) 230if (_owner.VirtualMode) 275if (_owner.VirtualMode) 317if (_owner.VirtualMode) 330if (_owner.VirtualMode)
System\Windows\Forms\Controls\ListView\ListView.cs (41)
458if (CheckBoxes && !VirtualMode) 503if (CheckBoxes && !VirtualMode) 711if (VirtualMode) 985=> ShowGroups && _groups is not null && _groups.Count > 0 && Application.ComCtlSupportsVisualStyles && !VirtualMode; 1263if (!VirtualMode) 1819if (value == View.Tile && VirtualMode) 1870bool keepTopItem = IsHandleCreated && VirtualMode && View == View.Details && !DesignMode; 1879if (IsHandleCreated && VirtualMode && !DesignMode) 1910if (value == VirtualMode) 2259if (!VirtualMode && _sorting != SortOrder.None) 3073if (!VirtualMode) 3279if (VirtualMode) 3558ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize : _itemCount); 3677if (VirtualMode || sender is null || sender != _imageListGroup || !IsHandleCreated) 3759if (VirtualMode) 3776if (VirtualMode) 4073if (!VirtualMode) 4305if (VirtualMode || sender is null || sender != _imageListLarge || !IsHandleCreated) 4502if (!VirtualMode && IsHandleCreated && AutoArrange) 4564if (VirtualMode) 4622if (VirtualMode && VirtualListSize > -1 && !DesignMode) 4635if (!VirtualMode) 4648if (!CheckBoxes && !VirtualMode) 4664if (!Disposing && !VirtualMode) 4673if (SelectedItems is not null && !VirtualMode) 4982int maxSize = VirtualMode ? VirtualListSize : Items.Count; 5383ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, VirtualMode ? VirtualListSize : _itemCount); 5403ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize : _itemCount); 5422if (VirtualMode) 5439ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize : _itemCount); 5527if (VirtualMode) 5573if (Items.Count > 0 && !VirtualMode) 5586if (!VirtualMode && IsHandleCreated && AutoArrange && (View == View.LargeIcon || View == View.SmallIcon)) 5786if (IsHandleCreated && Application.ComCtlSupportsVisualStyles && !VirtualMode) 5841if (VirtualMode) 5860if (!CheckBoxes || VirtualMode) 6600if (VirtualMode && nmlv->iItem == -1) 6714if (CheckBoxes && !VirtualMode) 6746if (VirtualMode && m.LParamInternal != 0) 6795if (VirtualMode && m.LParamInternal != 0) 6834if (VirtualMode)
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (14)
27return _owner.VirtualMode ? _owner.VirtualListSize : _owner._itemCount; 31public bool OwnerIsVirtualListView => _owner.VirtualMode; 41if (_owner.VirtualMode) 66if (_owner.VirtualMode) 99if (_owner.VirtualMode) 132if (_owner.VirtualMode) 184((_owner.Sorting != SortOrder.None) && !_owner.VirtualMode)) 192Debug.Assert(!_owner.VirtualMode, "in virtual mode, this method does not make any sense"); 325if (_owner.VirtualMode) 337if (_owner.VirtualMode) 366Debug.Assert(!_owner.VirtualMode, "in virtual mode, this function does not make any sense"); 380int index = _owner.VirtualMode ? Count - 1 : IndexOf(item); 384if (_owner.VirtualMode) 397if (_owner.VirtualMode)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (3)
258if (_owner.VirtualMode) 283if (!_owner.VirtualMode) 318if (_owner.VirtualMode)
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (13)
88if (_owner.VirtualMode) 116if (_owner.VirtualMode) 156if (_owner.VirtualMode) 184if (_owner.VirtualMode) 267if (_owner.VirtualMode) 284if (_owner.VirtualMode) 294if (_owner.VirtualMode) 304if (_owner.VirtualMode) 321if (_owner.VirtualMode) 334if (_owner.VirtualMode) 352if (_owner.VirtualMode) 371if (_owner.VirtualMode) 391if (_owner.VirtualMode)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
306if (_listView.VirtualMode)
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
22public bool OwnerIsVirtualListView => _group.ListView is not null && _group.ListView.VirtualMode;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (6)
579if (!_listView.VirtualMode) 644if (!_listView.VirtualMode) 997Debug.Assert(_listView is null || !_listView.VirtualMode, "ListViewItem::Host can't be used w/ a virtual item"); 998Debug.Assert(parent is null || !parent.VirtualMode, "ListViewItem::Host can't be used w/ a virtual list"); 1038Debug.Assert(!_listView.VirtualMode, "we need to update the group only when the user specifies the list view items in localizable forms"); 1297Debug.Assert(listView is not null && listView.VirtualMode, "ListViewItem::SetItemIndex should be used only when the list is virtual");
System.Windows.Forms.Tests (3)
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
750if (listView.VirtualMode) 788if (listView.VirtualMode)
System\Windows\Forms\ListViewTests.cs (1)
149Assert.False(control.VirtualMode);