Skip to main content
All docs
V25.2
  • RibbonSearchMenuEventArgs.AddHeader(String) Method

    Adds a header to the Search Menu.

    Namespace: DevExpress.XtraBars.Ribbon

    Assembly: DevExpress.XtraBars.v25.2.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    public void AddHeader(
        string caption
    )

    Parameters

    Name Type Description
    caption String

    The header caption.

    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