Skip to main content

RichEditBarItemNames.InsertTableOfEquationsField Property

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

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string InsertTableOfEquationsField { get; }

Property Value

Type Description
String

The “InsertTableOfEquationsField” string.

Remarks

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

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

The Insert Table of Equations 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 Equations 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