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

SchedulerPopupMenu.GetPopupMenuById(SchedulerMenuItemId, Boolean) Method

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v18.2.dll

Declaration

public SchedulerPopupMenu GetPopupMenuById(
    SchedulerMenuItemId id,
    bool recursive
)
Public Function GetPopupMenuById(
    id As SchedulerMenuItemId,
    recursive As Boolean
) As SchedulerPopupMenu

Parameters

Name Type Description
id SchedulerMenuItemId

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

recursive Boolean

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

Returns

Type Description
SchedulerPopupMenu

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

Remarks

Use the GetPopupMenuById method to find a popup 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 the item with the specified ID.

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

See Also