Share via


TreeViewNode.Depth Properti

Definisi

Mendapatkan nilai yang menunjukkan seberapa jauh simpul saat ini dari simpul akar pohon.

Dokumentasi ini berlaku untuk WinUI 2 untuk UWP (untuk WinUI di SDK Aplikasi Windows, lihat namespace SDK Aplikasi Windows).

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

Nilai Properti

Int32

int

Kedalaman simpul saat ini dari simpul akar pohon.

Atribut
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Berlaku untuk