Syntax
ListBoxItem ListBoxGetItem( const ListBox *listBox, int position );
Arguments
listBox the list box.
position the one-based position of an existing item.
Return value
A ListBoxItem with the item's text and optional data. Both fields are NULL if position is outside the item list or the object is NULL.
Description
The returned structure holds pointers to the list's strings. Its `data` field is `NULL` when the item has no associated data. A pointer stays valid until its string is replaced, the item is removed or the list is freed.
The C API represents the xBase two-element item array as a `ListBoxItem` structure with named `text` and `data` fields. Associated data uses an optional string.