blazor-devexpress-dot-blazor-dot-richedit-dot-richeditcontextmenuitemnames-d4250b76.md
Gets the Insert Table Elements Menu item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public const string InsertTableElementsMenu = "InsertTableElementsMenu"
| Type | Description |
|---|---|
| String |
The “InsertTableElementsMenu” string.
|
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 LeftThe item inserts a column to the left of the selected column.Insert Table Column to the RightThe item inserts a column to the right of the selected column.Insert Table Row AboveThe item inserts a row above the selected row.Insert Table Row BelowThe item inserts a row below the selected row.Show Insert Cells DialogThe 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
RichEditContextMenuItemNames Class