Table of Contents

Method GetMenuItemsWith

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

GetMenuItemsWith(Func<MenuItem, bool>)

Gets all MenuItems in the menu hierarchy that match predicate.

public IEnumerable<MenuItem> GetMenuItemsWith(Func<MenuItem, bool> predicate)

Parameters

predicate Func<MenuItem, bool>

A function to test each MenuItem.

Returns

IEnumerable<MenuItem>

All matching MenuItems across all PopoverMenus.