RichEditContextMenuItemNames.TextWrapTight Field
Gets the Text Wrap Tight item’s name.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.1.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public const string TextWrapTight = "TextWrapTight"
Field Value
Type | Description |
---|---|
String | The “TextWrapTight” string. |
Remarks
Use this property to perform the following operations with the Text Wrap Tight item:
- Access the item’s properties
- Add/remove the item to/from a menu
- Remove the item from the Text Wrap Menu
The Text Wrap Tight item is a context menu item in the Text Wrap Menu. The item 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 CustomizeContextMenu="OnCustomizeContextMenu"/>
@code {
void OnCustomizeContextMenu(IContextMenuItemCollection items) {
IContextMenuItem textWrapMenu = items[RichEditContextMenuItemNames.TextWrapMenu];
if(textWrapMenu != null)
textWrapMenu.Items.Remove(RichEditContextMenuItemNames.TextWrapTight);
}
}
See Also