Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditBarItemNames.TableOfFiguresMenu Property

Gets the Table of Figures Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

C#
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:

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