Skip to main content
All docs
V24.2

RichEditContextMenuItemNames.InsertTableElementsMenu Field

Gets the Insert Table Elements Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

Assembly: DevExpress.Blazor.RichEdit.v24.2.dll

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public const string InsertTableElementsMenu = "InsertTableElementsMenu"

Field Value

Type Description
String

The “InsertTableElementsMenu” string.

Remarks

Use this property to perform the following operations with the Insert Table Elements Menu item:

The Insert Table Elements Menu item is a context menu item that contains the following sub-menu items:

Insert Table Column to the Left
The item inserts a column to the left of the selected column.
Insert Table Column to the Right
The item inserts a column to the right of the selected column.
Insert Table Row Above
The item inserts a row above the selected row.
Insert Table Row Below
The item inserts a row below the selected row.
Show Insert Cells Dialog
The item invokes the Insert Cells dialog that allows users to insert a cell, column, or row to a table.

The following code snippet removes sub-menu items from the Insert Table Elements Menu:

<DxRichEdit CustomizeContextMenu="OnCustomizeContextMenu"/>

@code {
    void OnCustomizeContextMenu(IContextMenuItemCollection items) {
        IContextMenuItem tableElementsMenu = items[RichEditContextMenuItemNames.InsertTableElementsMenu];
        if(tableElementsMenu != null)
            tableElementsMenu.Items.Clear();
    }
}
See Also