Skip to main content

MoveCursorToEnd

Moves a cursor to the end of the current editing area (document body, footer/header, footnote, or autoshape).

This method is similar to pressing the Ctrl + End keyboard shortcut.

Syntax​

expression.MoveCursorToEnd(isMoveToMainContent);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
isMoveToMainContentRequiredbooleanThis flag ignores the current position and always moves a cursor to the end of the document body.

Returns​

This method doesn't return any data.

Example​

window.Asc.plugin.executeMethod ("MoveCursorToEnd", [true]);