Skip to main content

RichEditSelection.selectLine Method

Selects the line in which the cursor is located and allows you to extend the selection.

Declaration

selectLine(
    extendSelection?: boolean
): void

Parameters

Name Type Description
extendSelection boolean

true to extend the selection; otherwise, false.

Remarks

When the end of the current line is already selected, the method selects the next line.

// Selects five lines
for(let i=0; i<5; i++)
  richEdit.selection.selectLine(true);

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

See Also