Back to Devexpress

RichEditSelection.goToNextLine Method

aspnet-js-richeditselection-cd33e9bf.md

latest1.1 KB
Original Source

RichEditSelection.goToNextLine Method

Moves the cursor to the next line and allows you to extend the selection.

Declaration

ts
goToNextLine(
    extendSelection?: boolean
): void

Parameters

NameTypeDescription
extendSelectionboolean

true to extend the selection; otherwise, false.

|

Remarks

Moves the cursor one line down. If the current line is the last one, moves the cursor to the end of the current line.

Use the goToLineStart/goToLineEnd method to move the cursor to the start/end of the line.

javascript
// Moves the cursor to the start of the next line
richEdit.selection.goToNextLine(false);
richEdit.selection.goToLineStart(false);

Refer to the following section for more information: Client Selection.

See Also

RichEditSelection Class

RichEditSelection Members