Skip to main content

RichEditBarItemNames.InsertTableOfFiguresField Property

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

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string InsertTableOfFiguresField { get; }

Property Value

Type Description
String

The “InsertTableOfFiguresField” string.

Remarks

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

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

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

The following code snippet removes the Insert Table of Figures 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