ExtendSelect Method (ListViewEx)

Class

ListViewEx.

Action

Selects a range of items by extending the selection in the listview.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

listview.ExtendSelect (item)
Variable Description
item The item to which to extend the selection. LISTITEM.

Notes

ExtendSelect extends the list selection by scrolling the item into view and selecting it.

ExtendSelect requires that the list already has a selected item. Precede the call with a call to Select to select the first item.

Example

// Selects the items between TheFirstItem and TheLastItem, inclusive 
TestApplication.ListViewDialog.Elements.Select("TheFirstItem") 
TestApplication.ListViewDialog.Elements.ExtendSelect("TheLastItem")