Back to Devexpress

RichEditBarItemNames.TableOfFiguresMenu Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-b86453a1.md

latest3.3 KB
Original Source

RichEditBarItemNames.TableOfFiguresMenu Property

Gets the Table of Figures Menu item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string TableOfFiguresMenu { get; }

Property Value

TypeDescription
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 FieldThe button inserts the TOC field that generates a list of equations from equation captions.Insert Table of Figures FieldThe button inserts the TOC field that generates a list of figures from figures captions.Insert Table of Tables FieldThe 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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace