ListBox.RowExpandedAt

From Xojo Documentation

Property (As Boolean )
aListBox.RowExpandedAt(row as Integer) = newBooleanValue
or
BooleanValue = aListBox.RowExpandedAt(row as Integer)

New in 2019r2

Supported for all project types and targets.

Used to get or set the expanded state of the row passed.

Notes

The row must have been added with the AddExpandableRow method.

Example

This example expands the first row of ListBox1 (if it is collapsed) or collapses it (if it was expanded). The row must have been added with the AddExpandableRow method:

ListBox1.RowExpandedAt(1) = Not ListBox1.RowExpandedAt(1)