C4 Engine
C4 Engine API Documentation

TableWidget::UnselectTableItem

Defined in:  C4Widgets.h
Unselects an item in a table.
Prototype

void UnselectTableItem(int32 index, bool post = false);

Parameters
index The index of the item to unselect.
post Indicates whether to post a kEventWidgetChange event.
Description
The UnselectTableItem function unselects the table item whose zero-based index is specified by the index parameter. If the index parameter is not in the range [0, n − 1], where n is the number of items in the table, then no change to the current selection is made.

If the post parameter is true and a change was actually made to the selection, then the table widget posts a kEventWidgetChange event that can be handled by its observers.
See Also

TableWidget::SelectTableItem

TableWidget::SelectAllTableItems

TableWidget::UnselectAllTableItems

TableWidget::GetFirstSelectedTableItem

TableWidget::GetLastSelectedTableItem

TableWidget::GetSelectedTableItem

TableWidget::GetSelectedTableItemCount

TableWidget::GetTableItemCount

TableWidget::GetTableFlags

TableWidget::SetTableFlags

TableWidget::RevealTableItem