Share via


TreeViewNode.HasChildren 屬性

定義

取得值,這個值表示目前節點是否有子專案。

public:
 property bool HasChildren { bool get(); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
bool HasChildren();
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public bool HasChildren { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; }
var boolean = treeViewNode.hasChildren;
Public ReadOnly Property HasChildren As Boolean

屬性值

Boolean

bool

如果目前節點有子專案,則為 true;否則為 false

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

適用於