C4 Engine
C4 Engine API Documentation

TableWidget::GetSelectedTableItem

Defined in:  C4Widgets.h
Returns the selected table item with a specific index.
Prototype

Widget *GetSelectedTableItem(int32 index) const;

Parameters
index The index of the selected table item to return, where the first selected table item has the index 0.
Description
The GetSelectedTableItem function returns a pointer to the selected table item whose zero-based index among all selected table items is specified by the index parameter. If the value of index is greater than or equal to the number of selected items in the table (or if index is negative), then the return value is nullptr.

Selected table items are indexed in the order in which they appear in the table, and not in the order in which they were selected.
See Also

TableWidget::GetFirstSelectedTableItem

TableWidget::GetLastSelectedTableItem

TableWidget::GetSelectedTableItemCount