Sets a new input position from a text position.

Introduced: 30.0.

<void> TXTextControl.setInputPositionByTextPosition(<number> textPosition, <TextFieldPosition> textFieldPosition, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
textPosition Specifies a text position. The first position is zero.
textFieldPosition If the textPosition parameter is a position at the beginning or at the end of a TextField with a doubled input position, this parameter can be used to define whether the position is inside or outside the field.
callback Optional. Is called when the operation completed.
errorCallback Optional. Is called when the operation failed with an error.