Skip to main content

RichEditBarItemNames.TableOfFiguresMenu Property

Gets the Table of Figures Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string TableOfFiguresMenu { get; }

Property Value

Type Description
String

The “TableOfFiguresMenu” string.

Remarks

Use this property to perform the following operations:

The Table of Figures Menu item is a drop-down menu in the Captions group. This menu contains the following items:

Insert Table of Equations Field
The button inserts the TOC field that generates a list of equations from equation captions.
Insert Table of Figures Field
The button inserts the TOC field that generates a list of figures from figures captions.
Insert Table of Tables Field
The button inserts the TOC field that generates a list of tables from tables captions.

The following code snippet removes items from the Table of Figures Menu item:

<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