Skip to main content
All docs
V25.2
  • IContextMenuItemCollection.Remove(IContextMenuItem) Method

    Removes the specified item from the item collection.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.2.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    bool Remove(
        IContextMenuItem item
    )

    Parameters

    Name Type Description
    item IContextMenuItem

    A context menu item.

    Returns

    Type Description
    Boolean

    true if the item is removed; otherwise, false.

    Remarks

    Handle the CustomizeContextMenu event to modify context commands available in the Grid, Rich Text Editor, or TreeList component. In the event handler, call the Remove method to remove an item from the menu item collection.

    Refer to CustomizeContextMenu event descriptions for additional information and examples:

    See Also