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

</div>

# ListBox.RowDepth

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

<div class="warning">

<div class="title">

Warning

</div>

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

</div>

## Description

For hierarchical ListBoxes, this is the depth of the specified row in the hierarchy. A top-level row has <span class="title-ref">RowDepth</span> = 0.

## Sample code

Get depth of selected row:

``` xojo
Dim row As Integer = ListBox1.ListIndex
Dim depth As Integer = ListBox1.RowDepth(row)
```

## Compatibility

All projects types on all supported operating systems.
