Skip to main content

RichEditBarItemNames.TextWrapSquare Property

Gets the Text Wrap Square item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string TextWrapSquare { get; }

Property Value

Type Description
String

The “TextWrapSquare” string.

Remarks

Use this property to perform the following operations with the Text Wrap Square item:

The Text Wrap Square item is a button in the Text Wrap Menu. The button wraps the text around the rectangular borders of the selected image or text box.

The example below demonstrates how to remove the Text Wrap Square item from the Text Wrap Menu:

<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