Back to Devexpress

IContextMenuItemCollection.Remove(IContextMenuItem) Method

blazor-devexpress-dot-blazor-dot-icontextmenuitemcollection-dot-remove-x28-devexpress-dot-blazor-dot-icontextmenuitem-x29.md

latest1.6 KB
Original Source

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

csharp
bool Remove(
    IContextMenuItem item
)

Parameters

NameTypeDescription
itemIContextMenuItem

A context menu item.

|

Returns

TypeDescription
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

IContextMenuItemCollection Interface

IContextMenuItemCollection Members

DevExpress.Blazor Namespace