共用方式為


ExpanderAutomationPeer.ExpandCollapseState 屬性

定義

取得 Expander.IsExpanded 屬性的值,並傳回 Expander 目前是否展開或折迭。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 property ExpandCollapseState ExpandCollapseState { ExpandCollapseState get(); };
ExpandCollapseState ExpandCollapseState();
public ExpandCollapseState ExpandCollapseState { get; }
Public ReadOnly Property ExpandCollapseState As ExpandCollapseState

屬性值

Expanded 如果控制項的內容區域目前顯示則為 ; Collapsed 如果內容區域已隱藏,則為 。

實作

適用於