Skip to main content

RichEditBarItemNames.BringToFront Property

Gets the Bring to Front item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string BringToFront { get; }

Property Value

Type Description
String

The “BringToFront” string.

Remarks

Use this property to perform the following operations with the Bring to Front item:

The Bring to Front item is a button in the Bring Forward Menu. The button brings the selected floating image or text box in front of all images and text boxes. The Rich Text Editor disables this button when an inline image is selected.

The following code snippet removes the Bring to Front item from the Bring Forward Menu:

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem bringForwardMenu = ribbon.Tabs[RichEditRibbonTabNames.FloatingObjectFormat].Groups[RichEditRibbonGroupNames.FormatArrange].Items[RichEditBarItemNames.BringForwardMenu];
        if (bringForwardMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown bringForwardDropDown = (IBarDropDown)bringForwardMenu;
            bringForwardDropDown.Items.Remove(RichEditBarItemNames.BringForward);
            bringForwardDropDown.Items.Remove(RichEditBarItemNames.BringInFrontOfText);
            bringForwardDropDown.Items.Remove(RichEditBarItemNames.BringToFront);
        }
    }
}
See Also