Back to Devexpress

RichEditBarItemNames.TextWrapTopAndBottom Property

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

latest3.0 KB
Original Source

RichEditBarItemNames.TextWrapTopAndBottom Property

Gets the Text Wrap Top and Bottom item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string TextWrapTopAndBottom { get; }

Property Value

TypeDescription
String

The “TextWrapTopAndBottom” string.

|

Remarks

Use this property to perform the following operations with the Text Wrap Top and Bottom item:

The Text Wrap Top and Bottom item is a button in the Text Wrap Menu. The button places the text above and below the selected image or text box.

The following code snippet removes the Text Wrap Top and Bottom item from the Text Wrap Menu:

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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace