ListView.VirtualListSize Property
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
The number of ListViewItem objects contained in the ListView when in virtual mode.
VirtualListSize is set to a value less than 0.
VirtualMode is set to true
, VirtualListSize is greater than 0, and RetrieveVirtualItem is not handled.
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.
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: