TXTextControl.TextPart Object

The callback function argument for the getTextParts function.

Introduced: 24.0.

Syntax

[JavaScript]
{
    type: <string>,     // "mainText", "headerFooter", "textFrame"
    index: <number>,
    selection: <Property>
}

Properties

Property Description
index The 0-based index of the text part.
selection The getter returns an object of type Selection.
type The Text part type.

Methods

Method Description
addTextField Inserts a new ApplicationField or TextField into the TextPArt at the current input position.
getSubTextParts 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.
getTextFields Requests a collection of either all text fields in the text part or only the text field 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.

See Also