Skip to main content
All docs
V24.1

IContextMenuItem.Name Property

Specifies the name for a context menu item.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

string Name { get; set; }

Property Value

Type Description
String

The item name.

Remarks

Use the Name property to specify an item‘s name. The RichEditContextMenuItemNames class contains names for built-in items of the context menu.

The following code snippet adds a custom menu item and specifes its name:

<DxRichEdit CustomizeContextMenu=OnCustomizeContextMenu/>

@code {
    void OnCustomizeContextMenu(IContextMenuItemCollection items) {
        IContextMenuItem customItem = items.AddCustomItem("My Custom Item");
        customItem.Name = "MyCustomItem";
    }
}
See Also