Skip to main content
A newer version of this page is available. .

SchedulerPopupMenu.GetMenuItemById(SchedulerMenuItemId) Method

Gets a menu item by its ID value.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v18.2.dll

Declaration

public SchedulerMenuItem GetMenuItemById(
    SchedulerMenuItemId id
)

Parameters

Name Type Description
id SchedulerMenuItemId

A SchedulerMenuItemId enumeration value which specifies the ID value of the menu item to be searched for.

Returns

Type Description
SchedulerMenuItem

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.

Remarks

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.

See Also