Skip to main content

RichEditBarItemNames.TableOptionsMenu Property

Gets the Table Options Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string TableOptionsMenu { get; }

Property Value

Type Description
String

The “TableOptionsMenu” string.

Remarks

Use this property to perform the following operations:

The Table Options Menu item is a drop-down menu in the Table Style Options group. This menu contains the following items:

Banded Columns
The checkable button displays or removes special formatting from odd columns of the selected table.
Banded Rows
The checkable button displays or removes special formatting from odd rows of the selected table.
First Column
The checkable button displays or removes special formatting from the first column of the selected table.
Header Row
The checkable button displays or removes special formatting from the first row of the selected table.
Last Column
The checkable button displays or removes special formatting from the last column of the selected table.
Total Row
The checkable button displays or removes special formatting from the last row of the selected table.

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

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem tableOptionsMenu = ribbon.Tabs[RichEditRibbonTabNames.TableDesign].Groups[RichEditRibbonGroupNames.DesignTableStyleOptions].Items[RichEditBarItemNames.TableOptionsMenu];
        if (tableOptionsMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown tableOptionsDropDown = (IBarDropDown)tableOptionsMenu;
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.BandedColumns);
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.BandedRows);
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.FirstColumn);
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.HeaderRow);
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.LastColumn);
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.TotalRow);
        }
    }
}
See Also