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.
Displays all items that are in the RibbonMenuButton that is associated with this RibbonMenuButtonAutomationPeer.
Namespace: Microsoft.Windows.Automation.Peers
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Private Sub Expand Implements IExpandCollapseProvider.Expand
void IExpandCollapseProvider.Expand()
private:
virtual void Expand() sealed = IExpandCollapseProvider::Expand
private abstract Expand : unit -> unit
private override Expand : unit -> unit
JScript does not support explicit interface implementations.
Implements
IExpandCollapseProvider.Expand()
Exceptions
Exception | Condition |
---|---|
ElementNotEnabledException | The RibbonMenuButton is not enabled. |
InvalidOperationException | The RibbonMenuButton does not contain any items. |
Remarks
This member is an explicit interface member implementation. It can be used only when the RibbonMenuButtonAutomationPeer instance is cast to an IExpandCollapseProvider 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.