C4 Engine
C4 Engine API Documentation

ListWidget::GetListItem

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

Widget *GetListItem(int32 index) const;

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

ListWidget::GetFirstListItem

ListWidget::GetLastListItem

ListWidget::GetListItemCount