public class BarToolbarsListItem : BarLinkContainerItem
Public Class BarToolbarsListItem Inherits BarLinkContainerItem
BarToolbarsListItem objects are displayed onscreen using the corresponding bar item links - BarToolbarsListItemLink objects. At design time, such a link is represented by a single item. At runtime, it’s expanded to display the list of existing bars and dock panels. Note that the main menu (the bar assigned to the BarManager.MainMenu) property and auto-hidden panels are not displayed by the link.
The check marks displayed within the bar item link’s list allow an end-user to hide and display the corresponding bars and dock panels. If the BarToolbarsListItem.ShowCustomizationItem property is set to true, a “Customize…” option appears within the list. This option calls the Customization Window of the BarManager component.
To make a BarToolbarsListItem‘s link display the names of the existing dock panels, set the BarToolbarsListItem.ShowDockPanels property to true and ensure that the BarManager.DockManager property refers to the dock manager that contains the dock panels. If you create a BarManager and DockManager components at design time the BarManager.DockManager property is initialized automatically. If any of these components is created at runtime, the BarManager.DockManager property must be set manually.
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.