ListView.VirtualListSize Property

Definition

Gets or sets the number of ListViewItem objects contained in the list when in virtual mode.

C#
public int VirtualListSize { get; set; }

Property Value

The number of ListViewItem objects contained in the ListView when in virtual mode.

Exceptions

VirtualListSize is set to a value less than 0.

VirtualMode is set to true, VirtualListSize is greater than 0, and RetrieveVirtualItem is not handled.

Remarks

Getting or setting the VirtualListSize property when VirtualMode set to false will have no effect on the ListView.

If VirtualMode is set to true, and the VirtualListSize property is greater than 0, you must handle the RetrieveVirtualItem event, providing a valid ListViewItem.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also