Back to Devexpress

RibbonSearchMenuEventArgs.ShowNoMatchesItem Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribbonsearchmenueventargs-38ccfdd6.md

latest1.8 KB
Original Source

RibbonSearchMenuEventArgs.ShowNoMatchesItem Property

Gets or sets whether to display the No matches found item in the Search Menu.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public bool ShowNoMatchesItem { get; set; }
vb
Public Property ShowNoMatchesItem As Boolean

Property Value

TypeDescription
Boolean

true to display the No matches found item in the Search Menu; otherwise, false.

|

Remarks

If the ribbon control does not contain items that match the search query, the Search Menu displays the No matches found item:

Set the ShowNoMatchesItem property to false to hide this item when you populate the Search Menu in code.

See Also

RibbonSearchMenuEventArgs Class

RibbonSearchMenuEventArgs Members

DevExpress.XtraBars.Ribbon Namespace