Skip to main content
All docs
V24.2

RichEditContextMenuItemNames.CopySelection Field

Gets the Copy Selection item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public const string CopySelection = "CopySelection"

Field Value

Type Description
String

The “CopySelection” string.

Remarks

Use this property to perform the following operations with the Copy Selection item:

The Copy Selection item is a context menu item that allows users to copy the selection to the Clipboard.

The following code snippet removes the Copy Selection item from the context menu:

<DxRichEdit CustomizeContextMenu="OnCustomizeContextMenu" />

@code {
    void OnCustomizeContextMenu(IContextMenuItemCollection items) {
        items.Remove(RichEditContextMenuItemNames.CopySelection);
        items.Remove(RichEditContextMenuItemNames.CutSelection);
        items.Remove(RichEditContextMenuItemNames.Paste);
    }
}
See Also