69 writes to VirtualMode
System.Windows.Forms.Tests (65)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (14)
265
VirtualMode
= virtualMode
346
VirtualMode
= virtualMode
388
VirtualMode
= virtualMode
449
VirtualMode
= virtualMode
511
VirtualMode
= virtualMode
582
VirtualMode
= virtualMode
637
VirtualMode
= virtualMode
717
VirtualMode
= virtualMode
799
VirtualMode
= virtualMode
851
VirtualMode
= virtualMode
1010
VirtualMode
= true,
1056
VirtualMode
= true,
1087
VirtualMode
= true,
1390
VirtualMode
= virtualMode
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
664
VirtualMode
= virtualMode
1427
VirtualMode
= virtualMode,
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (8)
561
VirtualMode
= true,
697
VirtualMode
= true,
839
VirtualMode
= virtualMode,
887
VirtualMode
= virtualMode,
922
VirtualMode
= virtualMode,
1136
VirtualMode
= virtualMode,
1195
VirtualMode
= virtualMode,
1926
VirtualMode
= virtualMode,
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
800
VirtualMode
= virtualMode,
System\Windows\Forms\ListViewGroupCollectionTests.cs (5)
1059
using ListView listView = new() {
VirtualMode
= true };
1075
using ListView listView = new() {
VirtualMode
= true };
1091
using ListView listView = new() {
VirtualMode
= true };
1107
using ListView listView = new() {
VirtualMode
= true };
1126
using ListView listView = new() {
VirtualMode
= true };
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
817
VirtualMode
= virtualMode,
System\Windows\Forms\ListViewTests.cs (34)
1564
VirtualMode
= virtualMode,
1586
VirtualMode
= virtualMode,
1659
VirtualMode
= virtualMode,
1745
VirtualMode
= virtualMode,
2509
VirtualMode
= virtualMode,
2530
VirtualMode
= virtualMode,
2603
VirtualMode
= virtualMode,
2689
VirtualMode
= virtualMode,
2992
VirtualMode
= true,
3051
VirtualMode
= true,
3173
VirtualMode
= virtualMode,
3194
VirtualMode
= virtualMode,
3293
VirtualMode
= virtualMode,
3405
VirtualMode
= virtualMode,
3538
VirtualMode
= virtualMode,
3561
VirtualMode
= virtualMode,
3734
VirtualMode
= virtualMode,
3921
VirtualMode
= virtualMode,
4326
VirtualMode
= false,
4383
VirtualMode
= true,
4419
VirtualMode
= true,
4470
VirtualMode
= true,
4515
control.
VirtualMode
= false;
4547
control.
VirtualMode
= false;
4590
control.
VirtualMode
= false;
4622
control.
VirtualMode
= true;
4648
VirtualMode
= true,
4716
VirtualMode
= virtualMode,
4791
VirtualMode
= virtualMode,
4953
using ListView listView = new() {
VirtualMode
= true };
4976
using ListView listView = new() {
VirtualMode
= true };
5254
VirtualMode
= true,
5280
VirtualMode
= true,
6182
VirtualMode
= virtualMode,
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
538
listView.
VirtualMode
= virtualModeEnabled;
WinFormsControlsTest (3)
ListViewTest.cs (1)
74
VirtualMode
= true,
ListViewTest.Designer.cs (1)
95
this.listView3.
VirtualMode
= true;
MultipleControls.cs (1)
39
VirtualMode
= true,
94 references to VirtualMode
System.Windows.Forms (91)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (12)
35
if (_owner.
VirtualMode
)
69
if (_owner.
VirtualMode
)
83
if (_owner.
VirtualMode
)
103
if (_owner.
VirtualMode
)
161
if (_owner.
VirtualMode
)
178
if (_owner.
VirtualMode
)
198
if (_owner.
VirtualMode
)
208
if (_owner.
VirtualMode
)
230
if (_owner.
VirtualMode
)
275
if (_owner.
VirtualMode
)
317
if (_owner.
VirtualMode
)
330
if (_owner.
VirtualMode
)
System\Windows\Forms\Controls\ListView\ListView.cs (41)
458
if (CheckBoxes && !
VirtualMode
)
503
if (CheckBoxes && !
VirtualMode
)
711
if (
VirtualMode
)
985
=> ShowGroups && _groups is not null && _groups.Count > 0 && Application.ComCtlSupportsVisualStyles && !
VirtualMode
;
1263
if (!
VirtualMode
)
1819
if (value == View.Tile &&
VirtualMode
)
1870
bool keepTopItem = IsHandleCreated &&
VirtualMode
&& View == View.Details && !DesignMode;
1879
if (IsHandleCreated &&
VirtualMode
&& !DesignMode)
1910
if (value ==
VirtualMode
)
2259
if (!
VirtualMode
&& _sorting != SortOrder.None)
3073
if (!
VirtualMode
)
3279
if (
VirtualMode
)
3558
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
VirtualMode
? VirtualListSize : _itemCount);
3677
if (
VirtualMode
|| sender is null || sender != _imageListGroup || !IsHandleCreated)
3759
if (
VirtualMode
)
3776
if (
VirtualMode
)
4073
if (!
VirtualMode
)
4305
if (
VirtualMode
|| sender is null || sender != _imageListLarge || !IsHandleCreated)
4502
if (!
VirtualMode
&& IsHandleCreated && AutoArrange)
4564
if (
VirtualMode
)
4622
if (
VirtualMode
&& VirtualListSize > -1 && !DesignMode)
4635
if (!
VirtualMode
)
4648
if (!CheckBoxes && !
VirtualMode
)
4664
if (!Disposing && !
VirtualMode
)
4673
if (SelectedItems is not null && !
VirtualMode
)
4982
int maxSize =
VirtualMode
? VirtualListSize : Items.Count;
5383
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex,
VirtualMode
? VirtualListSize : _itemCount);
5403
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
VirtualMode
? VirtualListSize : _itemCount);
5422
if (
VirtualMode
)
5439
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
VirtualMode
? VirtualListSize : _itemCount);
5527
if (
VirtualMode
)
5573
if (Items.Count > 0 && !
VirtualMode
)
5586
if (!
VirtualMode
&& IsHandleCreated && AutoArrange && (View == View.LargeIcon || View == View.SmallIcon))
5786
if (IsHandleCreated && Application.ComCtlSupportsVisualStyles && !
VirtualMode
)
5841
if (
VirtualMode
)
5860
if (!CheckBoxes ||
VirtualMode
)
6600
if (
VirtualMode
&& nmlv->iItem == -1)
6714
if (CheckBoxes && !
VirtualMode
)
6746
if (
VirtualMode
&& m.LParamInternal != 0)
6795
if (
VirtualMode
&& m.LParamInternal != 0)
6834
if (
VirtualMode
)
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (14)
27
return _owner.
VirtualMode
? _owner.VirtualListSize : _owner._itemCount;
31
public bool OwnerIsVirtualListView => _owner.
VirtualMode
;
41
if (_owner.
VirtualMode
)
66
if (_owner.
VirtualMode
)
99
if (_owner.
VirtualMode
)
132
if (_owner.
VirtualMode
)
184
((_owner.Sorting != SortOrder.None) && !_owner.
VirtualMode
))
192
Debug.Assert(!_owner.
VirtualMode
, "in virtual mode, this method does not make any sense");
325
if (_owner.
VirtualMode
)
337
if (_owner.
VirtualMode
)
366
Debug.Assert(!_owner.
VirtualMode
, "in virtual mode, this function does not make any sense");
380
int index = _owner.
VirtualMode
? Count - 1 : IndexOf(item);
384
if (_owner.
VirtualMode
)
397
if (_owner.
VirtualMode
)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (3)
258
if (_owner.
VirtualMode
)
283
if (!_owner.
VirtualMode
)
318
if (_owner.
VirtualMode
)
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (13)
88
if (_owner.
VirtualMode
)
116
if (_owner.
VirtualMode
)
156
if (_owner.
VirtualMode
)
184
if (_owner.
VirtualMode
)
267
if (_owner.
VirtualMode
)
284
if (_owner.
VirtualMode
)
294
if (_owner.
VirtualMode
)
304
if (_owner.
VirtualMode
)
321
if (_owner.
VirtualMode
)
334
if (_owner.
VirtualMode
)
352
if (_owner.
VirtualMode
)
371
if (_owner.
VirtualMode
)
391
if (_owner.
VirtualMode
)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
306
if (_listView.
VirtualMode
)
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
22
public bool OwnerIsVirtualListView => _group.ListView is not null && _group.ListView.
VirtualMode
;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (6)
579
if (!_listView.
VirtualMode
)
644
if (!_listView.
VirtualMode
)
997
Debug.Assert(_listView is null || !_listView.
VirtualMode
, "ListViewItem::Host can't be used w/ a virtual item");
998
Debug.Assert(parent is null || !parent.
VirtualMode
, "ListViewItem::Host can't be used w/ a virtual list");
1038
Debug.Assert(!_listView.
VirtualMode
, "we need to update the group only when the user specifies the list view items in localizable forms");
1297
Debug.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)
752
if (listView.
VirtualMode
)
790
if (listView.
VirtualMode
)
System\Windows\Forms\ListViewTests.cs (1)
151
Assert.False(control.
VirtualMode
);