DesktopListBox.RowDepthAt

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

DesktopListBox.RowDepthAt(row as Integer) As Integer

New in 2021r3

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)