<div class="meta" robots="noindex">

</div>

# ListBox.Expanded

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `DesktopListBox.RowExpandedAt<desktoplistbox.rowexpandedat>` as a replacement.

</div>

## Description

Used to get or set the <span class="title-ref">Expanded</span> state of the row passed.

## Notes

The row must have been added with the AddFolder method.

## Sample code

This example expands the first row of ListBox1 (if it is collapsed) or collapses it (if it was <span class="title-ref">Expanded</span>). The row must have been added with the AddFolder method:

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

## Compatibility

All projects types on all supported operating systems.
