Skip to main content

SchedulerPopupMenu.GetMenuCheckItemById(SchedulerMenuItemId, Boolean) Method

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

Declaration

public SchedulerMenuCheckItem GetMenuCheckItemById(
    SchedulerMenuItemId id,
    bool recursive
)

Parameters

Name Type Description
id SchedulerMenuItemId

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

recursive Boolean

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

Returns

Type Description
SchedulerMenuCheckItem

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

Remarks

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

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

See Also