Share via


RibbonQuickAccessToolBarAutomationPeer.Collapse Method

Hides all items that are in the RibbonQuickAccessToolBar that is associated with this RibbonQuickAccessToolBarAutomationPeer.

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

Syntax

'Declaration
Public Sub Collapse
public void Collapse()
public:
virtual void Collapse() sealed
abstract Collapse : unit -> unit 
override Collapse : unit -> unit 
public final function Collapse()

Implements

IExpandCollapseProvider.Collapse()

Exceptions

Exception Condition
InvalidOperationException

The RibbonQuickAccessToolBar does not have items in the overflow menu.

.NET Framework Security

See Also

Reference

RibbonQuickAccessToolBarAutomationPeer Class

Microsoft.Windows.Automation.Peers Namespace