Back to Devexpress

RichEditSelection.goToDocumentStart Method

aspnet-js-richeditselection-a3a631e6.md

latest896 B
Original Source

RichEditSelection.goToDocumentStart Method

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

Declaration

ts
goToDocumentStart(
    extendSelection?: boolean
): void

Parameters

NameTypeDescription
extendSelectionboolean

true to extend the selection; otherwise, false.

|

Remarks

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

RichEditSelection Class

RichEditSelection Members