Graphisoft®

Dialog ManagerVersion: 2.0

TreeView::GetSelectedItem

Retrieves the selected item.

long GetSelectedItem (long tvItem = RootItem) const;

Parameters

tvItem
ID of the tree view item where the search begins. Use RootItem to search from the root of the tree view. For single-selection tree views this parameter is ignored.

Return Value

For single-selection tree views, the ID of the selected item or NoItem if there is no selected item.
For multiple-selection tree views, the ID of the first selected item after treeItem, including the starting item, too. If there is no such selected item, the function returns NoItem.
If the function parameters are incorrect, NoItem is returned.