Skip to main content

RichEditSelection.goToDocumentEnd Method

Moves the cursor to the end of the active sub-document and allows you to extend the selection.

Declaration

goToDocumentEnd(
    extendSelection?: boolean
): void

Parameters

Name Type Description
extendSelection boolean

true to extend the selection; otherwise, false.

Remarks

// Inserts text at the end of the active sub-document
richEdit.selection.goToDocumentEnd(false);
richEdit.commands.insertText.execute('The end.');

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

See Also