Represents a collection of bar items within the RibbonControl.
Related API Members
The following members accept/return RibbonBarItems objects:
The RibbonBarItems class represents a collection of bar items within the RibbonControl. This collection can be accessed via the RibbonControl.Items property.
If bar items are created at design time, they are automatically added to the collection. If you create bar items in code and wish to use them within the RibbonControl, ensure that the created bar items are added to the collection. The following methods allow you to create bar items while ensuring that they are automatically added to the collection:
- create items using the Create... methods provided by the RibbonBarItems collection (for instance, BarItems.CreateButton, BarItems.CreateMenu, RibbonBarItems.CreateButtonGroup, BarItems.CreateSplitButton, etc);
- create items using their constructors that have the manager parameter. Pass the object specified by the RibbonControl.Manager property as the parameter.