Share via


TreeViewNode.Depth 屬性

定義

取得值,這個值表示目前節點與樹狀結構根節點的距離。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewNode.Depth (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

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

屬性值

Int32

int

樹狀結構根節點中目前節點的深度。

適用於