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

This class contains information used in the MoveSelectionCommand.

Definition

Namespace:Telerik.WinForms.Documents.RichTextBoxCommands

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class MoveSelectionCommandParameter

Inheritance: objectMoveSelectionCommandParameter

Constructors

Initializes the move or copy operation with its destination and removal behavior.

C#
public MoveSelectionCommandParameter(DocumentPosition dropPosition, bool deleteSelection)
Parameters:dropPositionDocumentPosition

The destination position for the selected content.

deleteSelectionbool

true to remove the original selection as part of the move; otherwise, copy it.

Properties

Gets or sets whether the selected content is removed from its original position; true moves it, while false copies it.

C#
public bool DeleteSelection { get; set; }

Gets or sets the position where the selected content is inserted.

C#
public DocumentPosition DropPosition { get; set; }