Share via


RibbonMenuItemDataAutomationPeer.IToggleProvider.ToggleState Property

Gets the checked state of the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.

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

Syntax

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

Property Value

Type: System.Windows.Automation.ToggleState
The checked state of the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.

Implements

IToggleProvider.ToggleState

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 IToggleProvider interface.

.NET Framework Security

See Also

Reference

RibbonMenuItemDataAutomationPeer Class

Microsoft.Windows.Automation.Peers Namespace