Back to Devexpress

SpreadsheetControl.CreateStatusBarManager() Method

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-14996b9b.md

latest3.3 KB
Original Source

SpreadsheetControl.CreateStatusBarManager() Method

Adds a status bar with all Spreadsheet-related items to the Spreadsheet control with a Bar UI.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
public BarManager CreateStatusBarManager()
vb
Public Function CreateStatusBarManager As BarManager

Returns

TypeDescription
BarManager

A component that manages the created status bar.

|

Remarks

Use the CreateStatusBarManager method overloads to add a status bar to a Spreadsheet application with a Bar UI.

csharp
using DevExpress.XtraBars;
using DevExpress.XtraSpreadsheet;
// ...

public Form1()
{
    InitializeComponent();
    // Create the Spreadsheet's toolbar menu.
    BarManager barManager = spreadsheetControl1.CreateBars();
    // Add a status bar to the Spreadsheet.
    // The status bar is managed by the same BarManager instance that stores the created toolbars.
    spreadsheetControl1.CreateStatusBarManager();
    // Display the status bar and toolbars on the Form.
    barManager.Form = this;
}
vb
Imports DevExpress.XtraBars
Imports DevExpress.XtraSpreadsheet
' ...

Public Class Form1
    Public Sub New()
        InitializeComponent()
        ' Create the Spreadsheet's toolbar menu.
        Dim barManager As BarManager = spreadsheetControl1.CreateBars()
        ' Add a status bar to the Spreadsheet.
        ' The status bar is managed by the same BarManager instance that stores the created toolbars.
        spreadsheetControl1.CreateStatusBarManager()
        ' Display the status bar and toolbars on the Form.
        barManager.Form = Me
    End Sub
End Class

Use the CreateRibbonStatusBar method to create a status bar for the Spreadsheet control with a Ribbon UI.

Tip

You can also use the CreateStatusBarManager method to add a status bar to a standalone Spreadsheet control that does not have a Ribbon or Bar UI.

csharp
// Add a status bar to the Spreadsheet control.
BarManager statusBar = spreadsheetControl1.CreateStatusBarManager();
// Display the status bar on the Form.
statusBar.Form = this;
vb
' Add a status bar to the Spreadsheet control.
Dim statusBar As BarManager = spreadsheetControl1.CreateStatusBarManager()
' Display the status bar on the Form.
statusBar.Form = Me

See Also

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.XtraSpreadsheet Namespace