Back to Devexpress

RichEditContextMenuItemNames.Paste Field

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditcontextmenuitemnames-7988abdc.md

latest1.8 KB
Original Source

RichEditContextMenuItemNames.Paste Field

Gets the Paste item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public const string Paste = "Paste"

Field Value

TypeDescription
String

The “Paste” string.

|

Remarks

Use this property to perform the following operations with the Paste item:

The Paste item is a context menu item that allows users to paste the Clipboard content.

The following code snippet removes the Paste 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