Skip to main content

MoveCursorToContentControl

Moves a cursor to the specified content control.

Syntax

expression.MoveCursorToContentControl(id, isBegin);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
idRequiredstringA unique internal identifier of the content control.
isBeginOptionalbooleanfalseDefines if the cursor position changes in the content control. By default, a cursor will be placed to the content control begin (false).

Returns

This method doesn't return any data.

Example

window.Asc.plugin.executeMethod ("MoveCursorToContentControl", ["2_839", false]);