New to Telerik UI for WinForms? Start a free 30-day trial

Copies the selected document elements to the clipboard; copying is allowed from read-only and protected content.

Definition

Constructors

Initializes the command for the specified editor.

C#
public CopyCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose selection is copied.

Properties

Allows copying from a protected document.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Allows copying while the editor is read-only.

C#
protected override bool CanExecuteInReadOnlyMode { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyMode

Allows copying when the selection is in a read-only range.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Copies the selected document elements to the clipboard.

C#
protected override void ExecuteOverride(object parameter)
Parameters:parameterobject

Not used by this command.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)