Graphisoft®

Dialog ManagerVersion: 2.0

ListView::GetSelectedItem

For single-selection list views retrieves the index of the selected item.
For multiple-selection list views retrieves the index of the next selected list view item.

short GetSelectedItem (short listItem = TopItem) const;

Parameters

listItem
1-based index of the list view item where the search begins. Use TopItem of Item type to search from the first item. For single-selection list views this parameter is ignored.

Return Value

For single-selection list views, the 1-based index of the selected item or zero if there is no selected item.
For multiple-selection list views, the 1-based index of the first selected item after listItem, including the starting item, too. If there is no such selected item, the function returns zero.