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

Pastes clipboard content into the document and disallows execution when a single shape is selected.

Definition

Constructors

Initializes the command for the specified editor.

C#
public PasteCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor into which clipboard content is pasted.

Properties

Marks paste as an operation that may replace selected content for protected-range permission checks.

C#
protected override bool IsDeletingCommand { get; }

Overrides: RichTextBoxCommandBase.IsDeletingCommand

Methods

Rejects paste when the selection consists of a single shape; otherwise uses the base command's availability check.

C#
protected override bool CanExecuteOverride(object parameter)
Parameters:parameterobject

The command parameter.

Returns:

bool

false for a single selected shape; otherwise, the result of the base availability check.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Pastes clipboard content into the associated editor.

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

Not used by this command.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)