ViewCount (Property)

Applies To:

ListBox object

Description:

Enables you to specify the number of items to display in the list control view. This allows you to page the list control view using the Object Model.

The ViewCount (Property) value is not related to the actual number of items that are displayed in the listbox. The ViewCount (Property) represents the number of items that could be displayed in the view (for example, the “page size”).

The ViewCount (Property) is an integer value. For example, if “2.5” items can be displayed, then “2” is returned (the floor). The minimum value of this property is one even if less than one item could fit in the listbox.

Action:

Read Only, View Count as Number

Example:

This example sets the view count property to four.

ActiveSection.Shapes["ListBox1"].ViewCount=4