This class handles the selection from the keyboard.
Definition
Namespace:Telerik.WinForms.Documents.Selection
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
C#
public class KeyboardSelectionHandler
Inheritance: objectKeyboardSelectionHandler
Constructors
Initializes a new instance of the KeyboardSelectionHandler class.
C#
public KeyboardSelectionHandler(RadDocument document)
The current document.
Properties
Gets the current document.
C#
protected RadDocument Document { get; }
Gets the caret position when starting the selection.
C#
protected DocumentPosition LastCaretPosition { get; }
Methods
C#
public virtual DocumentPosition ExpandDownLeft(DocumentPosition currentPosition)
C#
public virtual DocumentPosition ExpandTopRight(DocumentPosition currentPosition)
This method updates the selected range when the caret is moved by pressing shift and the arrow keys.
C#
public virtual void UpdateSelection(MoveCaretDirections direction = MoveCaretDirections.Unknown)
The current movement direction of the caret.