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

BarManagerCategory Class

An individual category.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v18.1.dll

Declaration

[TypeConverter(typeof(UniversalTypeConverter))]
public class BarManagerCategory :
    MarshalByRefObject,
    ICloneable,
    ISerializable

Remarks

Categories are used to logically organize bar items. Individual categories are represented by the BarManagerCategory objects. All categories reside within the BarManager’s BarManager.Categories collection and are displayed within the Customization Window. Thus, a newly created category object should be added to this collection in order to take effect. Note that the category’s name should be unique, because if its name is identical to an existing category, an argument exception will be raised when adding it to the collection.

To display a bar item within the category, you need to set its BarItem.Category property to the desired category object.

Please refer to the How To: Organize Bar Items into Categories topic for additional information on categories.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BarManagerCategory 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.

Inheritance

Object
MarshalByRefObject
BarManagerCategory
See Also