Skip to main content

RichEditBarItemNames.DeleteTableElementsMenu Property

Gets the Delete Table Elements Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string DeleteTableElementsMenu { get; }

Property Value

Type Description
String

The “DeleteTableElementsMenu” string.

Remarks

Use this property to perform the following operations:

The Delete Table Elements Menu item is a drop-down menu in the Rows and Columns group. This menu contains the following items:

Delete Table
The button deletes the selected table.
Delete Table Columns
The button deletes the selected table columns.
Delete Table Rows
The button deletes the selected table rows.
Show Delete Cells Dialog
The button invokes the Delete Cells dialog that allows users to delete a table cell, column, or row.

The following code snippet removes items from the Delete Table Elements Menu item:

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem deleteTableElementsMenu = ribbon.Tabs[RichEditRibbonTabNames.TableLayout]
        .Groups[RichEditRibbonGroupNames.LayoutRowsAndColumns]
        .Items[RichEditBarItemNames.DeleteTableElementsMenu];
        if (deleteTableElementsMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown deleteTableElementsDropDown = (IBarDropDown)deleteTableElementsMenu;
            deleteTableElementsDropDown.Items.Remove(RichEditBarItemNames.DeleteTable);
            deleteTableElementsDropDown.Items.Remove(RichEditBarItemNames.DeleteTableColumns);
            deleteTableElementsDropDown.Items.Remove(RichEditBarItemNames.DeleteTableRows);
            deleteTableElementsDropDown.Items.Remove(RichEditBarItemNames.ShowDeleteCellsDialog);
        }
    }
}
See Also