blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-a597e3a2.md
Gets the Text Wrap Tight item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public static string TextWrapTight { get; }
| Type | Description |
|---|---|
| String |
The “TextWrapTight” string.
|
Use this property to perform the following operations with the Text Wrap Tight item:
The Text Wrap Tight item is a button in the Text Wrap Menu. The button wraps the text tightly around the selected image or text box.
Note
The Rich Text Editor currently does not support the Tight wrap type and displays it as the Square wrap type.
The following code snippet removes the Text Wrap Tight 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