Back to Devexpress

RichEditBarItemNames.TableOptionsMenu Property

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

latest4.0 KB
Original Source

RichEditBarItemNames.TableOptionsMenu Property

Gets the Table Options 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 TableOptionsMenu { get; }

Property Value

TypeDescription
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 ColumnsThe checkable button displays or removes special formatting from odd columns of the selected table.Banded RowsThe checkable button displays or removes special formatting from odd rows of the selected table.First ColumnThe checkable button displays or removes special formatting from the first column of the selected table.Header RowThe checkable button displays or removes special formatting from the first row of the selected table.Last ColumnThe checkable button displays or removes special formatting from the last column of the selected table.Total RowThe 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:

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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace