blazor-devexpress-dot-blazor-dot-richedit-dot-richeditcontextmenuitemnames-c3d371ec.md
Gets the Text Wrap Inline item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public const string TextWrapInline = "TextWrapInline"
| Type | Description |
|---|---|
| String |
The “TextWrapInline” string.
|
Use this property to perform the following operations with the Text Wrap Inline item:
The Text Wrap Inline item is a context menu item in the Text Wrap Menu. The item places the selected image in the text and the Rich Text Editor treats this image like a character. The Rich Text Editor disables this item when a text box is selected.
The following code snippet removes the Text Wrap Inline 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.TextWrapInline);
}
}
See Also
RichEditContextMenuItemNames Class