Back to Devexpress

RichEditBarItemNames.CopySelection Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-dd1113d3.md

latest2.6 KB
Original Source

RichEditBarItemNames.CopySelection Property

Gets the Copy Selection item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string CopySelection { get; }

Property Value

TypeDescription
String

The “CopySelection” string.

|

Remarks

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

The Copy Selection item is a button in the Clipboard Menu. This button allows users to copy the selection to the Clipboard.

The following code snippet removes the Copy Selection item from the Clipboard Menu:

razor
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem clipboardMenu = ribbon.Tabs[RichEditRibbonTabNames.Home].Groups[RichEditRibbonGroupNames.HomeUndoClipboard].Items[RichEditBarItemNames.ClipboardMenu];
        if (clipboardMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown clipboardDropDown = (IBarDropDown)clipboardMenu;
            clipboardDropDown.Items.Remove(RichEditBarItemNames.CopySelection);
            clipboardDropDown.Items.Remove(RichEditBarItemNames.CutSelection);
            clipboardDropDown.Items.Remove(RichEditBarItemNames.Paste);
        }
    }
}

See Also

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace