Skip to main content

RichEditBarItemNames.TextWrapMenu Property

Gets the Text Wrap Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string TextWrapMenu { get; }

Property Value

Type Description
String

The “TextWrapMenu” string.

Remarks

Use this property to perform the following operations:

The Text Wrap Menu item is a drop-down menu in the Arrange group. This menu contains the following items that allow users to change how text wraps around the selected image or text box:

The following code snippet removes items from the Text Wrap Menu item:

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem textWrapMenu = ribbon.Tabs[RichEditRibbonTabNames.FloatingObjectFormat].Groups[RichEditRibbonGroupNames.FormatArrange].Items[RichEditBarItemNames.TextWrapMenu];
        if (textWrapMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown textWrapDropDown = (IBarDropDown)textWrapMenu;
            textWrapDropDown.Items.Remove(RichEditBarItemNames.TextWrapBehindText);
            textWrapDropDown.Items.Remove(RichEditBarItemNames.TextWrapInFrontOfText);
            textWrapDropDown.Items.Remove(RichEditBarItemNames.TextWrapInline);
            textWrapDropDown.Items.Remove(RichEditBarItemNames.TextWrapSquare);
            textWrapDropDown.Items.Remove(RichEditBarItemNames.TextWrapThrough);
            textWrapDropDown.Items.Remove(RichEditBarItemNames.TextWrapTight);
            textWrapDropDown.Items.Remove(RichEditBarItemNames.TextWrapTopAndBottom);
        }
    }
}
See Also