Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.