Skip to main content

SchedulerPopupMenu.GetMenuItemById(SchedulerMenuItemId) Method

Gets a menu item by its ID value.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetMenuItemById(SchedulerMenuItemId) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also