ListView.VirtualListSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the number of ListViewItem objects contained in the list when in virtual mode.
public:
property int VirtualListSize { int get(); void set(int value); };
public int VirtualListSize { get; set; }
member this.VirtualListSize : int with get, set
Public Property VirtualListSize As Integer
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.