listview.selectedItems Property


index = listview.selectedItems;
collection = listview.selectedItems;

If the control is a single selection list view then this property returns the index of the current selection. If the list view allows multiple selections the property returns a collection object which contains indices of all selected items.

Example

// Print the indices of all selected items
for (i=0; i<listview.selectedItems.Count; i++)
    Env.LogInfo(listview.selectedItems(i));
		

See also

listview Overview | listview.selected | collection Overview

 


© 2003 Lightweight Technologies. All rights reserved.