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

适用于