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

BarStaticItem Class

Represents a bar item with a look and feel similar to the StatusbarPanel.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v18.1.dll

Declaration

public class BarStaticItem :
    BarItem

The following members accept/return BarStaticItem objects:

Library Related API Members
WinForms Controls BarStaticItemLink.Item
Reporting XRDesignBarManager.HintStaticItem

Remarks

This class combines the functionality of the BarItem and a Status Panel (See StatusBarPanel in MSDN). With this item, you can create a Status bar-like panel within your application form. A status panel is often used to display static information or data which cannot be modified by a user.

You are allowed to change its width, right and left indents and content alignment within the item. The BarStaticItem.AutoSize property specifies how the item link is located within the bar. Each link for this item can have its own caption.

StatusBar

Note

If you create Bar Items in code, note that these objects may not function properly without being associated with a BarManager or RibbonControl. To create a Bar Item, use a Bar Item constructor that has the BarManager parameter. When creating a Bar Item in code for use within a RibbonControl, use a Bar Item constructor that has the BarManager parameter, and pass the RibbonControl.Manager object as this parameter.

The following code snippets (auto-collected from DevExpress Examples) contain references to the BarStaticItem class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also