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

SchedulerPopupMenu.GetMenuItemById(SchedulerMenuItemId) Method

Gets a menu item by its ID value.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.2.dll

Declaration

public SchedulerMenuItem GetMenuItemById(
    SchedulerMenuItemId id
)
Public Function GetMenuItemById(
    id As SchedulerMenuItemId
) As SchedulerMenuItem

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