RichEditSelection.goToNextLine Method
In This Article
Moves the cursor to the next line and allows you to extend the selection.
#Declaration
TypeScript
goToNextLine(
extendSelection?: boolean
): void
#Parameters
Name | Type | Description |
---|---|---|
extend |
boolean |
|
#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