Editare

Partajați prin


ListView.VirtualListSize Property

Definition

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.

Applies to

See also