TreeViewItemAutomationPeer.ExpandCollapseState プロパティ

定義

関連付けられた TreeViewItem の展開または折りたたまれた状態を示す値を取得します。

UWP 用の同等の WinUI 2 API: Microsoft.UI.Xaml.Automation.Peers.TreeViewItemAutomationPeer.ExpandCollapseState (Windows アプリ SDKの WinUI の場合は、Windows アプリ SDK名前空間を参照してください)。

public:
 property ExpandCollapseState ExpandCollapseState { ExpandCollapseState get(); };
ExpandCollapseState ExpandCollapseState();
public ExpandCollapseState ExpandCollapseState { get; }
var expandCollapseState = treeViewItemAutomationPeer.expandCollapseState;
Public ReadOnly Property ExpandCollapseState As ExpandCollapseState

プロパティ値

関連付けられた TreeViewItem の展開または折りたたまれた状態。 既定値は Expanded です

実装

注釈

ExpandCollapseState は、直接の子オブジェクトの可視性のみを指し、すべての子孫オブジェクトの可視性を参照するものではありません。

適用対象