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

Moves or copies the current selection to a document position; a raw drop position uses Ctrl to choose between the two.

Definition

Constructors

Creates a command that moves or copies selections in the specified editor.

C#
public MoveSelectionCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose selection is moved or copied.

Methods

Moves or copies the selection to the specified drop position.

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

A MoveSelectionCommandParameter or a DocumentPosition. With a raw position, holding Ctrl copies the selection; otherwise, the command moves it. A missing drop position has no effect.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)