SchedulerPopupMenu.GetMenuCheckItemById(DXPopupMenu, SchedulerMenuItemId, Boolean) Method
Gets the menu check item within the specified popup (context) menu by its ID value. Also optionally recursively searches for this check item in all submenus, if it isn’t found in the main popup menu.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.dll
NuGet Package: DevExpress.Win.Scheduler
#Declaration
public static SchedulerMenuCheckItem GetMenuCheckItemById(
DXPopupMenu menu,
SchedulerMenuItemId id,
bool recursive
)
#Parameters
Name | Type | Description |
---|---|---|
menu | DXPopup |
A DXPopup |
id | Scheduler |
A Scheduler |
recursive | Boolean | true to recursively search for the menu check item in all submenus; otherwise, false. |
#Returns
Type | Description |
---|---|
Scheduler |
A Scheduler |
#Remarks
Use the GetMenuCheckItemById method to find a menu check item with the specified ID value in the DXSubMenuItem.Items collection of the specified 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 submenus.