Skip to main content

RichEditBarItemNames.InsertTableElementsMenu Property

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 static string InsertTableElementsMenu { get; }

Property Value

Type Description
String

The “InsertTableElementsMenu” string.

Remarks

Use this property to perform the following operations:

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

Insert Table Column to the Left
The button inserts a column to the left of the selected column.
Insert Table Column to the Right
The button inserts a column to the right of the selected column.
Insert Table Row Above
The button inserts a row above the selected row.
Insert Table Row Below
The button inserts a row below the selected row.

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

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem insertTableElementsMenu = ribbon.Tabs[RichEditRibbonTabNames.TableLayout]
        .Groups[RichEditRibbonGroupNames.LayoutRowsAndColumns]
        .Items[RichEditBarItemNames.InsertTableElementsMenu];
        if (insertTableElementsMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown insertTableElementsDropDown = (IBarDropDown)insertTableElementsMenu;
            insertTableElementsDropDown.Items.Remove(RichEditBarItemNames.InsertTableColumnToTheLeft);
            insertTableElementsDropDown.Items.Remove(RichEditBarItemNames.InsertTableColumnToTheRight);
            insertTableElementsDropDown.Items.Remove(RichEditBarItemNames.InsertTableRowAbove);
            insertTableElementsDropDown.Items.Remove(RichEditBarItemNames.InsertTableRowBelow);
        }
    }
}
See Also