TreeViewNode.Depth Propriété

Définition

Obtient une valeur qui indique la distance entre le nœud actuel et le nœud racine de l’arborescence.

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

Valeur de propriété

Int32

int

Profondeur du nœud actuel à partir du nœud racine de l’arborescence.

Attributs
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

S’applique à