Skip to main content
All docs
V24.2

RibbonSearchMenuEventArgs.AddItem(BarItem) Method

Adds an item to the Search Menu.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public void AddItem(
    BarItem item
)

Parameters

Name Type Description
item BarItem

The added item.

Remarks

The following code snippet uses AddHeader and AddItem methods to add elements to the Search Menu:

Ribbon Search Menu - Add Custom Items

void ribbonControl1_CustomizeSearchMenu(object sender, RibbonSearchMenuEventArgs e) {
    // ...
    e.AddHeader("Get More Help");
    e.AddItem(biOnlineHelp);
}
See Also