Back to Devexpress

RichEditBarItemNames.InsertTableOfEquationsField Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-5e60d984.md

latest3.1 KB
Original Source

RichEditBarItemNames.InsertTableOfEquationsField Property

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

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string InsertTableOfEquationsField { get; }

Property Value

TypeDescription
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:

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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace