Share via


RibbonMenuItemDataAutomationPeer.IToggleProvider.Toggle Method

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

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

Syntax

'Declaration
Private Sub Toggle Implements IToggleProvider.Toggle
void IToggleProvider.Toggle()
private:
virtual void Toggle() sealed = IToggleProvider::Toggle
private abstract Toggle : unit -> unit 
private override Toggle : unit -> unit 
JScript does not support explicit interface implementations.

Implements

IToggleProvider.Toggle()

Exceptions

Exception Condition
ElementNotEnabledException

The RibbonMenuItem is not enabled.

ElementNotAvailableException

The RibbonMenuItem is virtualized.

InvalidOperationException

The RibbonMenuItem is not available.

-or-

The RibbonMenuItem cannot be checked.

Remarks

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 Security

See Also

Reference

RibbonMenuItemDataAutomationPeer Class

Microsoft.Windows.Automation.Peers Namespace