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

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

Namespace: DevExpress.Utils.Menu

Assembly: DevExpress.Utils.v20.2.dll

Declaration

public void RemoveMenuItem(
    T id,
    bool recursive
)
Public Sub RemoveMenuItem(
    id As T,
    recursive As Boolean
)

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 RemoveMenuItem method searches for menu items. After a menu item is found, it is removed from the collection.

See Also