blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-b86453a1.md
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
public static string TableOfFiguresMenu { get; }
| Type | Description |
|---|---|
| String |
The “TableOfFiguresMenu” string.
|
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:
<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