C4 Engine
C4 Engine API Documentation

ListWidget::RevealListItem

Defined in:  C4Widgets.h
Scrolls a list widget to reveal a specific item.
Prototype

void RevealListItem(int32 index);

Parameters
index The index of the item to reveal.
Description
The RevealListItem function scrolls a list widget to reveal the item having the zero-baed index specified by the index parameter. The list widget is scrolled far enough to place the revealed item at the vertical center of the list if possible.

If the index parameter is not in the range [0, n − 1], where n is the number of items in the list, then no change is made to the appearance of the list widget.
See Also

ListWidget::SetDisplayIndex

ListWidget::GetListItemCount