TreeViewNode.Depth Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.