ListBox.RowDepthAt

From Xojo Documentation

Method

ListBox.RowDepthAt(row as Integer) As Integer

New in 2019r2

Supported for all project types and targets.

For hierarchical ListBoxes, this is the depth of the specified row in the hierarchy. A top-level row has RowDepth = 0.

Example

Get depth of selected row:

Var row As Integer = ListBox1.RowCount
Var depth As Integer = ListBox1.RowDepthAt(row)