All docs
V21.2
21.2
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SpreadsheetControl.CreateRibbonStatusBar(RibbonControl, SpreadsheetStatusBarItems) Method

Creates a RibbonStatusBar with the specified items and binds it to the RibbonControl.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v21.2.dll

Declaration

public RibbonStatusBar CreateRibbonStatusBar(
    RibbonControl ribbon,
    SpreadsheetStatusBarItems statusBarItems
)

Parameters

Name Type Description
ribbon RibbonControl

Specifies a Ribbon control to which the status bar should be bound.

statusBarItems SpreadsheetStatusBarItems

Specifies items to display on the status bar.

Returns

Type Description
RibbonStatusBar

The created status bar.

Remarks

Use the CreateRibbonStatusBar method overloads to add a status bar to a Spreadsheet application with a Ribbon UI. The SpreadsheetStatusBarItems enumeration members specify items to display on the status bar.

using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraSpreadsheet;
// ...

public Form1()
{
    InitializeComponent();
    // Add a ribbon to the Spreadsheet control.
    RibbonControl ribbon = spreadsheetControl1.CreateRibbon();
    // Create a status bar and bind it to the Ribbon control.
    RibbonStatusBar statusBar = spreadsheetControl1.CreateRibbonStatusBar(ribbon, SpreadsheetStatusBarItems.All);

    // Add the ribbon and status bar to the Form.
    this.Controls.Add(ribbon);
    this.Controls.Add(statusBar);
}

Use the CreateStatusBarManager method to create a status bar for a standalone Spreadsheet control or Spreadsheet application with a Bar UI.

See Also