Back to Devexpress

RichEditContextMenuItemNames.CutSelection Field

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditcontextmenuitemnames-4f920a75.md

latest1.8 KB
Original Source

RichEditContextMenuItemNames.CutSelection Field

Gets the Cut Selection item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public const string CutSelection = "CutSelection"

Field Value

TypeDescription
String

The “CutSelection” string.

|

Remarks

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

The Cut Selection item is a context menu item that allows users to cut the selection and add it to the Clipboard.

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

razor
<DxRichEdit CustomizeContextMenu="OnCustomizeContextMenu" />

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

See Also

RichEditContextMenuItemNames Class

RichEditContextMenuItemNames Members

DevExpress.Blazor.RichEdit Namespace