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