Back to Devexpress

BarLinkContainerItem Class

windowsforms-devexpress-dot-xtrabars-48fc9d1b.md

latest3.4 KB
Original Source

BarLinkContainerItem Class

Represents a link container.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public class BarLinkContainerItem :
    BarCustomContainerItem,
    BarLinksHolder,
    IOptionsMultiColumnOwner,
    IXtraSerializationIdProvider,
    IXtraCollectionDeserializationOptionsProvider,
    IXtraSupportDeserializeCollection
vb
Public Class BarLinkContainerItem
    Inherits BarCustomContainerItem
    Implements BarLinksHolder,
               IOptionsMultiColumnOwner,
               IXtraSerializationIdProvider,
               IXtraCollectionDeserializationOptionsProvider,
               IXtraSupportDeserializeCollection

Remarks

Use the BarLinkContainerItem item to represent a group of item links. This can be useful if you need to display specific bar items within multiple menus.

  1. Create a BarLinkContainerItem item.
  2. Add bar item links.
  3. Add the BarLinkContainerItem item to a toolbar or menu.

At design time, the BarLinkContainerItem item is displayed as a single entry. The following screenshot displays a BarLinkContainerItem item displayed within a menu (at design time):

At runtime, the BarLinkContainerItem item is expanded to display its bar item links:

Note

If a BarLinkContainerItem is placed onto a toolbar or Ribbon Control, the BarLinkContainerItem is represented as a submenu.

Use the BarCustomContainerItem.ItemLinks property to add bar item links. At design time, use the BarManager’s Customization Window to add links to the container item.

Important

If you create a bar item in code, associate the bar item with the BarManager or RibbonControl. Use the constructor with the BarManager parameter. To display the bar item within the Ribbon Control, pass the RibbonControl.Manager object as the BarManager parameter.

Inheritance

Object MarshalByRefObject Component BarItem BarCustomContainerItem BarLinkContainerItem BarSubItem

BarToolbarsListItem

BarButtonGroup

See Also

BarLinkContainerItem Members

BarLinkContainerItemLink

DevExpress.XtraBars Namespace