windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-dot-createribbonstatusbar-x28-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-x29.md
Creates a RibbonStatusBar with all Spreadsheet-related items and binds it to the specified RibbonControl.
Namespace : DevExpress.XtraSpreadsheet
Assembly : DevExpress.XtraSpreadsheet.v25.2.dll
NuGet Package : DevExpress.Win.Spreadsheet
public RibbonStatusBar CreateRibbonStatusBar(
RibbonControl ribbon
)
Public Function CreateRibbonStatusBar(
ribbon As RibbonControl
) As RibbonStatusBar
| Name | Type | Description |
|---|---|---|
| ribbon | RibbonControl |
Specifies a Ribbon control to which the status bar should be bound.
|
| Type | Description |
|---|---|
| RibbonStatusBar |
The created status bar.
|
Use the CreateRibbonStatusBar method overloads to add a status bar to a Spreadsheet application with a Ribbon UI.
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);
// Add the ribbon and status bar to the Form.
this.Controls.Add(ribbon);
this.Controls.Add(statusBar);
}
Imports DevExpress.XtraBars.Ribbon
Imports DevExpress.XtraSpreadsheet
' ...
Public Class Form1
Public Sub New()
InitializeComponent()
' Add a ribbon to the Spreadsheet control.
Dim ribbon As RibbonControl = spreadsheetControl1.CreateRibbon()
' Create a status bar and bind it to the Ribbon control.
Dim statusBar As RibbonStatusBar = spreadsheetControl1.CreateRibbonStatusBar(ribbon)
' Add the ribbon and status bar to the Form.
Me.Controls.Add(ribbon)
Me.Controls.Add(statusBar)
End Sub
End Class
Use the CreateStatusBarManager method to create a status bar for a standalone Spreadsheet control or Spreadsheet application with a Bar UI.
See Also