Javascript: TXTextControl.getSubTextParts Method

Requests a collection of either all SubTextParts the current text part contains or only the SubTextPart containing the input position from the server and returns the collection by calling a callback function which has to be provided as a parameter to the function.

Introdued: 25.0.


<void> TXTextControl.getSubTextParts(<function> callback, <boolean> atInputPosition);
Parameter Description

A function with one parameter. Is called with an array of SubTextParts as a parameter containing the requested SubTextParts as soon as the information has been retrieved from the server.


Optional. A boolean value indicating that only the SubTextPart containing the input position should be retrieved. If there is no SubTextPart at the input position, an empty array is received.

See Also