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