Export (0) Print
Expand All

RibbonMenuItemDataAutomationPeer.IToggleProvider.Toggle Method

.NET Framework 4.6 and 4.5

Cycles through the checked states of the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.

Namespace:  System.Windows.Automation.Peers
Assembly:  System.Windows.Controls.Ribbon (in System.Windows.Controls.Ribbon.dll)

void IToggleProvider.Toggle()

Implements

IToggleProvider.Toggle()

ExceptionCondition
ElementNotEnabledException

The RibbonMenuItem is not enabled.

ElementNotAvailableException

The RibbonMenuItem is virtualized.

InvalidOperationException

The RibbonMenuItem is not available.

-or-

The RibbonMenuItem cannot be checked.

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

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft