RichEditContextMenuItemNames Class
Contains names of built-in items.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.2.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public static class RichEditContextMenuItemNames
Remarks
Use properties of the RichEditContextMenuItemNames
class to perform the following operations:
- Access and customize built-in items
- Add built-in items to the main context menu or sub-menus
- Remove built-in items from the main context menu or sub-menus
The following code snippet customizes the Rich Text Editor‘s context menu:
<DxRichEdit CustomizeContextMenu="OnCustomizeContextMenu"/>
@code {
void OnCustomizeContextMenu(IContextMenuItemCollection items) {
items.Remove(RichEditContextMenuItemNames.CutSelection);
items.Remove(RichEditContextMenuItemNames.CopySelection);
items.Remove(RichEditContextMenuItemNames.Paste);
var clipboardItem = items.AddCustomItem(0, "Clipboard");
clipboardItem.BeginGroup = true;
clipboardItem.Items.Add(RichEditContextMenuItemNames.CutSelection);
clipboardItem.Items.Add(RichEditContextMenuItemNames.CopySelection);
clipboardItem.Items.Add(RichEditContextMenuItemNames.Paste);
IContextMenuItem textWrapMenu = items[RichEditContextMenuItemNames.TextWrapMenu];
if(textWrapMenu != null)
textWrapMenu.Items.Clear();
}
}
Inheritance
Object
RichEditContextMenuItemNames
See Also