ListBox.Expanded

From Xojo Documentation

Revision as of 22:03, 17 June 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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 AddFolder 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 AddFolder method:

ListBox1.Expanded(1) = Not ListBox1.Expanded(1)