Skip to main content
A newer version of this page is available. .

RibbonControl.ExpandCollapseItem Property

Gets the bar item that encapsulates the Ribbon expand/collapse functionality.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v18.2.dll

Declaration

[Browsable(false)]
public virtual BarButtonItem ExpandCollapseItem { get; }

Property Value

Type Description
BarButtonItem

A BarButtonItem object that encapsulates the Ribbon expand/collapse functionality.

Remarks

The Ribbon Control provides an expand/collapse button that allows an end-user to hide/restore the RibbonControl’s pages. By default, this button is displayed on the right of the Ribbon Control and to the left of the page header items (see RibbonControl.ShowExpandCollapseButton).

The ExpandCollapseItem property can be used to access a bar item that encapsulates the Ribbon expand/collapse functionality. You can display this item within any Page Group or Quick Access Toolbar. To do this, add a link to this bar item to a corresponding ItemLinks collection (RibbonPageGroup.ItemLinks or RibbonQuickAccessToolbar.ItemLinks).

See Also