# LvwVirtualListItems class
{: .no_toc }

The items of a [**ListView**](/tB/Packages/Contributed/VBCCR18/ListView/index.md) in [virtual mode](/tB/Packages/Contributed/VBCCR18/ListView/VirtualMode.md), which its [**VirtualListItems**](/tB/Packages/Contributed/VBCCR18/ListView/VirtualMode.md#virtuallistitems) property returns. Its items are [**LvwVirtualListItem**](/tB/Packages/Contributed/VBCCR18/ListView/LvwVirtualListItem.md) objects, numbered from 1 to the control's [**VirtualItemCount**](/tB/Packages/Contributed/VBCCR18/ListView/VirtualMode.md#virtualitemcount). The program holds the data; the collection only reaches the items the control shows, by number.

```tb check_build
' In a ListView whose VirtualMode is True.
Dim i As Long
With ListView1.VirtualListItems
    For i = 1 To .Count
        If .Item(i).Selected Then Debug.Print "Selected:"; i
    Next
End With
```

A program goes through the items with **For Each**, or by number from 1 to [**Count**](#count). It cannot make an **LvwVirtualListItems** object with **New**. While the control is not in virtual mode, reading **VirtualListItems** raises run-time error 91.

* TOC
{:toc}

Properties
----------

### Count
{: .no_toc }

The number of items, the control's [**VirtualItemCount**](/tB/Packages/Contributed/VBCCR18/ListView/VirtualMode.md#virtualitemcount). **Long**, read-only.

### Item
{: .no_toc }

Returns one item. It is the default member, so `ListView1.VirtualListItems(5)` is `ListView1.VirtualListItems.Item(5)`.

Syntax: *object*.**Item**( *Index* ) **As LvwVirtualListItem**

*Index*
: *required* A **Long**: the number of the item, from 1 to [**Count**](#count). Another number raises run-time error 35600.

Methods
-------

### Exists
{: .no_toc }

Returns whether there is an item of a number, from 1 to [**Count**](#count). **Boolean**.

Syntax: *object*.**Exists**( *Index* ) **As Boolean**

## See Also

- [Virtual Mode](/tB/Packages/Contributed/VBCCR18/ListView/VirtualMode.md) -- a list the program supplies
- [LvwVirtualListItem](/tB/Packages/Contributed/VBCCR18/ListView/LvwVirtualListItem.md) class -- one item
