Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditBarItemNames.DeleteTableElementsMenu Property

Gets the Delete Table Elements Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

C#
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:

Razor
<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