Skip to main content

RichEditSelection.goToNextLine Method

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

Declaration

goToNextLine(
    extendSelection?: boolean
): void

Parameters

Name Type Description
extendSelection boolean

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.

// 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