TCustomRichViewEdit.MoveCaret

<< Click to display table of contents >>

TCustomRichViewEdit.MoveCaret

Moves the caret in the specified direction.

type
  TRVCaretMovement = (rvcmUp, rvcmDown, 
    rvcmLeft, rvcmRight, rvcmTop, rvcmBottom,
    rvcmHome, rvcmEnd, rvcmParaBeginning, 
    rvcmNextParaBeginning);
procedure MoveCaret(Direction: TRVCaretMovement;

  MakeSelection: Boolean = False);

(introduced in version 20)

The editor must be formatted before calling this method.

Direction

Moves the caret...

rvcmUp

up

rvcmDown

down

rvcmLeft

to the left

rvcmRight

to the right

rvcmTop

to the beginning of the document

rvcmBottom

to the end of the document

rvcmHome

to the beginning of the current line

rvcmEnd

to the end of the current line

rvcmParaBeginning

to the beginning of the current paragraph

rvcmNextParaBeginning

to the beginning of the next paragraph

If MakeSelection = True, a content from the old caret position to the new caret position is selected.