Skip to main content

CommandPopupMenu<T>.DisableMenuItem(T) Method

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

Namespace: DevExpress.Utils.Menu

Assembly: DevExpress.Utils.v24.2.dll

Declaration

public void DisableMenuItem(
    T id
)

Parameters

Name Type Description
id T

An object serving as a menu identifier.

Remarks

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

See Also