Back to Devexpress

RichEditBarItemNames.BringInFrontOfText Property

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

latest2.8 KB
Original Source

RichEditBarItemNames.BringInFrontOfText Property

Gets the Bring in Front of Text item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string BringInFrontOfText { get; }

Property Value

TypeDescription
String

The “BringInFrontOfText” string.

|

Remarks

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

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

The following code snippet removes the Bring in Front of Text item from the Bring Forward Menu:

razor
<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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace