Each bar item can be assigned to a specific category. Categories do not impose any restrictions on the associated items. They are only designed to provide organized access to items when using the Customization Window at runtime.
The BarManagerCategory class represents a category. You can add, remove and access individual categories by using the BarManager.Categories collection. To assign a category to an item, use the item’s BarItem.Category or BarItem.CategoryName property.