MoveCaretCommand
Moves the caret in the requested direction, accounting for right-to-left paragraphs and the current Shift modifier.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class MoveCaretCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseMoveCaretCommand
Implements:
Inherited Members
Constructors
Initializes a new instance of the MoveCaretCommand class.
public MoveCaretCommand(RadRichTextBox editor)
The associated RadRichTextBox.
Properties
Allows caret navigation regardless of protected-document permission ranges.
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }
Overrides:
Allows caret navigation when the editor is read-only.
protected override bool CanExecuteInReadOnlyMode { get; }
Overrides:
Allows caret navigation while the caret is in a read-only range.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Methods
Requires an available editor document and a parameter whose exact type is MoveCaretDirections.
Applies the direction, adjusting horizontal movement for right-to-left paragraphs and using Shift state to maintain selection.
protected override void ExecuteOverride(object parameter)
A MoveCaretDirections value.
Overrides: