IContextMenuItemCollection.Contains(IContextMenuItem) Method
Returns whether the item collection contains the specified item.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
bool Contains(
IContextMenuItem item
)
Parameters
| Name | Type | Description |
|---|---|---|
| item | IContextMenuItem | Context menu item. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
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 Contains method to check whether the main menu or its sub-menu contains an item.
Refer to CustomizeContextMenu event descriptions for additional information and examples:
See Also