MoveCursorToEnd
Moves a cursor to the end of the document.
Syntax
expression.MoveCursorToEnd();
expression - A variable that represents a ApiDocument class.
Parameters
This method doesn't have any parameters.
Returns
boolean
Example
Move the cursor to the end of the document in a document.
// How to move cursor to end for a document?
// Move cursor to end and display the result in a document.
const doc = Api.GetDocument();
const paragraph = doc.GetElement(0);
paragraph.AddText('This is the first paragraph.');
const paragraph2 = Api.CreateParagraph();
paragraph2.AddText('This is the second paragraph.');
doc.Push(paragraph2);
doc.MoveCursorToEnd();
doc.EnterText(' Cursor was moved to the end.');