Share via


TreeViewNode.Depth Property

Definition

Gets a value that indicates how far the current node is from the root node of the tree.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeViewNode.Depth (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property int Depth { int get(); };
int Depth();
public int Depth { get; }
var int32 = treeViewNode.depth;
Public ReadOnly Property Depth As Integer

Property Value

Int32

int

The depth of the current node from the root node of the tree.

Applies to