RichEditSelection.goToDocumentStart Method
In This Article
Moves the cursor to the start of the active sub-document and allows you to extend the selection.
#Declaration
TypeScript
goToDocumentStart(
extendSelection?: boolean
): void
#Parameters
Name | Type | Description |
---|---|---|
extend |
boolean |
|
#Remarks
// Inserts text at the start of the active sub-document
richEdit.selection.goToDocumentStart(false);
richEdit.commands.insertText.execute('The beginning.');
Refer to the following section for more information: Client Selection.
See Also