69 writes to VirtualMode
System.Windows.Forms.Tests (65)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (14)
263
VirtualMode
= virtualMode
344
VirtualMode
= virtualMode
386
VirtualMode
= virtualMode
447
VirtualMode
= virtualMode
509
VirtualMode
= virtualMode
580
VirtualMode
= virtualMode
635
VirtualMode
= virtualMode
715
VirtualMode
= virtualMode
797
VirtualMode
= virtualMode
849
VirtualMode
= virtualMode
1008
VirtualMode
= true,
1054
VirtualMode
= true,
1085
VirtualMode
= true,
1388
VirtualMode
= virtualMode
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
662
VirtualMode
= virtualMode
1425
VirtualMode
= virtualMode,
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (8)
559
VirtualMode
= true,
695
VirtualMode
= true,
837
VirtualMode
= virtualMode,
885
VirtualMode
= virtualMode,
920
VirtualMode
= virtualMode,
1134
VirtualMode
= virtualMode,
1193
VirtualMode
= virtualMode,
1924
VirtualMode
= virtualMode,
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
798
VirtualMode
= virtualMode,
System\Windows\Forms\ListViewGroupCollectionTests.cs (5)
1057
using ListView listView = new() {
VirtualMode
= true };
1073
using ListView listView = new() {
VirtualMode
= true };
1089
using ListView listView = new() {
VirtualMode
= true };
1105
using ListView listView = new() {
VirtualMode
= true };
1124
using ListView listView = new() {
VirtualMode
= true };
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
815
VirtualMode
= virtualMode,
System\Windows\Forms\ListViewTests.cs (34)
1562
VirtualMode
= virtualMode,
1584
VirtualMode
= virtualMode,
1657
VirtualMode
= virtualMode,
1743
VirtualMode
= virtualMode,
2507
VirtualMode
= virtualMode,
2528
VirtualMode
= virtualMode,
2601
VirtualMode
= virtualMode,
2687
VirtualMode
= virtualMode,
2990
VirtualMode
= true,
3049
VirtualMode
= true,
3171
VirtualMode
= virtualMode,
3192
VirtualMode
= virtualMode,
3291
VirtualMode
= virtualMode,
3403
VirtualMode
= virtualMode,
3536
VirtualMode
= virtualMode,
3559
VirtualMode
= virtualMode,
3732
VirtualMode
= virtualMode,
3919
VirtualMode
= virtualMode,
4324
VirtualMode
= false,
4381
VirtualMode
= true,
4417
VirtualMode
= true,
4468
VirtualMode
= true,
4513
control.
VirtualMode
= false;
4545
control.
VirtualMode
= false;
4588
control.
VirtualMode
= false;
4620
control.
VirtualMode
= true;
4646
VirtualMode
= true,
4714
VirtualMode
= virtualMode,
4789
VirtualMode
= virtualMode,
4951
using ListView listView = new() {
VirtualMode
= true };
4974
using ListView listView = new() {
VirtualMode
= true };
5252
VirtualMode
= true,
5278
VirtualMode
= true,
6180
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)
750
if (listView.
VirtualMode
)
788
if (listView.
VirtualMode
)
System\Windows\Forms\ListViewTests.cs (1)
149
Assert.False(control.
VirtualMode
);