Back to Devexpress

RibbonControl.ShowExpandCollapseButton Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-ff94dab5.md

latest2.9 KB
Original Source

RibbonControl.ShowExpandCollapseButton Property

Gets or sets whether the Ribbon Control displays a button that allows an end-user to hide/restore the RibbonControl’s pages.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public DefaultBoolean ShowExpandCollapseButton { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Property ShowExpandCollapseButton As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

A DefaultBoolean value that specifies the visibility of the button that allows an end-user to hide/restore the RibbonControl’s pages.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

Clicking the Expand/Collapse button hides and restores the RibbonControl’s pages. It’s equivalent to toggling the RibbonControl.Minimized property.

The Expand/Collapse button is displayed on the right of the Ribbon Control and to the left of the page header items, if any (see the RibbonControl.PageHeaderItemLinks topic):

The following list details the available values of the ShowExpandCollapseButton property:

  • The ShowExpandCollapseButton property is set to Default

  • The ShowExpandCollapseButton property is set to True

  • The ShowExpandCollapseButton property is set to False

See Also

Minimized

RibbonStyle

ShowMoreCommandsButton

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace