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

CommandPopupMenu<T>.EnableMenuItem(T, Boolean) Method

Find a menu item specified by its Id and enable it.

Namespace: DevExpress.Utils.Menu

Assembly: DevExpress.Utils.v18.2.dll

Declaration

public void EnableMenuItem(
    T id,
    bool recursive
)

Parameters

Name Type Description
id T

An object serving as a menu identifier.

recursive Boolean

true to search nested menus recursively; otherwise, false.

Remarks

The EnableMenuItem method searches for menu items recursively. After a menu item is found, its DXMenuItem.Enabled property is set to true.

See Also