Back to Devexpress

RichEditBarItemNames.DeleteTableElementsMenu Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-eda963e8.md

latest3.4 KB
Original Source

RichEditBarItemNames.DeleteTableElementsMenu Property

Gets the Delete Table Elements Menu item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string DeleteTableElementsMenu { get; }

Property Value

TypeDescription
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 TableThe button deletes the selected table.Delete Table ColumnsThe button deletes the selected table columns.Delete Table RowsThe button deletes the selected table rows.Show Delete Cells DialogThe 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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace