Dela via


RibbonMenuButtonAutomationPeer.IExpandCollapseProvider.ExpandCollapseState Property

Gets the state, expanded or collapsed, of the RibbonMenuButton that is associated with this RibbonMenuButtonAutomationPeer.

Namespace:  Microsoft.Windows.Automation.Peers
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Private ReadOnly Property ExpandCollapseState As ExpandCollapseState
    Implements IExpandCollapseProvider.ExpandCollapseState
ExpandCollapseState IExpandCollapseProvider.ExpandCollapseState { get; }
private:
virtual property ExpandCollapseState ExpandCollapseState {
    ExpandCollapseState get () sealed = IExpandCollapseProvider::ExpandCollapseState::get;
}
private abstract ExpandCollapseState : ExpandCollapseState
private override ExpandCollapseState : ExpandCollapseState
JScript does not support explicit interface implementations.

Property Value

Type: System.Windows.Automation.ExpandCollapseState
The state of the RibbonMenuButton that is associated with this RibbonMenuButtonAutomationPeer.

Implements

IExpandCollapseProvider.ExpandCollapseState

Remarks

This member is an explicit interface member implementation. It can be used only when the RibbonMenuButtonAutomationPeer instance is cast to an IExpandCollapseProvider interface.

.NET Framework Security

See Also

Reference

RibbonMenuButtonAutomationPeer Class

Microsoft.Windows.Automation.Peers Namespace