Share via


RibbonMenuItemDataAutomationPeer.IExpandCollapseProvider.ExpandCollapseState Property

Gets the state, expanded or collapsed, of the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.

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 RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.

Implements

IExpandCollapseProvider.ExpandCollapseState

Exceptions

Exception Condition
ElementNotAvailableException

The RibbonMenuItem is virtualized.

InvalidOperationException

The RibbonMenuItem is not available.

Remarks

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

.NET Framework Security

See Also

Reference

RibbonMenuItemDataAutomationPeer Class

Microsoft.Windows.Automation.Peers Namespace