Skip to main content

RichEditBarItemNames.InsertCaptionMenu Property

Gets the Insert Caption Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string InsertCaptionMenu { get; }

Property Value

Type Description
String

The “InsertCaptionMenu” string.

Remarks

Use this property to perform the following operations:

The Insert Caption Menu item is a drop-down menu in the Captions group. This menu contains the following items:

Insert Equation Caption Field
The button inserts an equation caption.
Insert Figure Caption Field
The button inserts a figure caption.
Insert Table Caption Field
The button inserts a table caption.

The example below demonstrates how to remove items from the Insert Caption Menu item:

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem insertCaptionMenu = ribbon.Tabs[RichEditRibbonTabNames.References].Groups[RichEditRibbonGroupNames.ReferencesCaptions].Items[RichEditBarItemNames.InsertCaptionMenu];
        if (insertCaptionMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown insertCaptionDropDown = (IBarDropDown)insertCaptionMenu;
            insertCaptionDropDown.Items.Remove(RichEditBarItemNames.InsertEquationCaptionField);
            insertCaptionDropDown.Items.Remove(RichEditBarItemNames.InsertFigureCaptionField);
            insertCaptionDropDown.Items.Remove(RichEditBarItemNames.InsertTableCaptionField);
        }
    }
}
See Also