A newer version of this page is available. Switch to the current version.

SchedulerPopupMenu.GetMenuItemById(SchedulerMenuItemId, Boolean) Method

Gets a menu item by its ID value. Also optionally recursively searches for this menu item in all submenus, if it isn't found in the main popup menu.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.2.dll


public SchedulerMenuItem GetMenuItemById(
    SchedulerMenuItemId id,
    bool recursive
Public Function GetMenuItemById(
    id As SchedulerMenuItemId,
    recursive As Boolean
) As SchedulerMenuItem


Name Type Description
id SchedulerMenuItemId

A SchedulerMenuItemId enumeration value which specifies the ID value of the menu item to search.

recursive Boolean

true to recursively search for the menu item in all submenus; otherwise, false.


Type Description

A SchedulerMenuItem object whose ID is equal to the specified ID value. If a menu item with the specified ID isn't found, then the null (Nothing in Visual Basic) value will be returned.


Use the GetMenuItemById method to find a menu item with the specified ID value in the DXSubMenuItem.Items collection of this popup menu. Note that this method finds only the first occurrence of an item with the specified ID.

Also if this menu item isn't contained in the main popup menu's Items collection, you can optionally specify if this menu item is searched for in all submenus.

See Also