Skip to main content

RichEditBarItemNames.InsertTableOfTablesField Property

Gets the Insert Table of Tables Field item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string InsertTableOfTablesField { get; }

Property Value

Type Description
String

The “InsertTableOfTablesField” string.

Remarks

Use this property to perform the following operations with the Insert Table of Tables Field item:

The Insert Table of Tables Field item is a button in the Table of Figures Menu item.

The Insert Table of Tables Field button is disabled if a TOC field is selected. Use the button’s GetEnabled property to change this behavior.

The example below demonstrates how to remove the Insert Table of Tables Field item from the Table of Figures Menu:

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem tableOfFiguresMenu = ribbon.Tabs[RichEditRibbonTabNames.References].Groups[RichEditRibbonGroupNames.ReferencesCaptions].Items[RichEditBarItemNames.TableOfFiguresMenu];
        if (tableOfFiguresMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown tableOfFiguresDropDown = (IBarDropDown)tableOfFiguresMenu;
            tableOfFiguresDropDown.Items.Remove(RichEditBarItemNames.InsertTableOfEquationsField);
            tableOfFiguresDropDown.Items.Remove(RichEditBarItemNames.InsertTableOfFiguresField);
            tableOfFiguresDropDown.Items.Remove(RichEditBarItemNames.InsertTableOfTablesField);
        }
    }
}
See Also