語言

TreeViewNode.Depth 屬性

定義

會得到一個值,表示目前節點距離樹根節點的距離。

public:
 property int Depth { int get(); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")]
int Depth();
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")]
public int Depth { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")] get; }
var int32 = treeViewNode.depth;
Public ReadOnly Property Depth As Integer

屬性值

Int32

int

即目前節點從樹根節點的深度。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用於