TreeViewItem.IsExpanded 屬性

定義

取得或設定值,這個值表示樹狀節點是否已展開。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewItem.IsExpanded (適用于Windows 應用程式 SDK中的 WinUI,請參閱Windows 應用程式 SDK命名空間) 。

public:
 property bool IsExpanded { bool get(); void set(bool value); };
bool IsExpanded();

void IsExpanded(bool value);
public bool IsExpanded { get; set; }
var boolean = treeViewItem.isExpanded;
treeViewItem.isExpanded = boolean;
Public Property IsExpanded As Boolean

屬性值

Boolean

bool

如果展開樹狀節點,則為true;否則為false

適用於