TXTextControl.TextPart Object The callback function argument for the getTextParts function. Introduced: 24.0. Syntax [JavaScript] { type: , // "mainText", "headerFooter", "textFrame" index: , selection: } Properties Property Description index The 0-based index of the text part. selection The getter
textParts Property TXTextControl Object JavaScript API Gets a collection of all main text parts the current document contains. The main text parts are the main text, text frames and headers and footers. Syntax JavaScript TXTextControl.textParts TXTextControl.textParts
objects in every textPart object in the current document. JavaScript function changeHighlightMode(){ TXTextControl.textParts.forEach(textPart = { textPart.applicationFields.forEach(appField = { appField.setHighlightMode(TXTextControl.HighlightMode.Activated); }); }); } function…
by calling a callback function which has to be provided as a parameter to the function. Introdued: 25.0. Syntax [JavaScript] TextPart.getSubTextParts( callback, atInputPosition); Parameter Description callback A function with one parameter. Is called with an
by calling a callback function which has to be provided as a parameter to the function. Introdued: 25.0. Syntax [JavaScript] TextPart.getTextFields( callback, atInputPosition); Parameter Description callback A function with one parameter. Is called with an
TXTextControl.TextPart.type Property The Text part type. Possible values are "mainText", "headerFooter" and "textFrame". Syntax [JavaScript] TextPart.type
TXTextControl.TextPart.index Property The 0-based index of the text part. Syntax [JavaScript] TextPart.index
TXTextControl.TextPart.selection Property The getter returns an object of type Selection. The setter changes the selection to a given start position and a given length using an object of type SelectionBounds. Syntax [JavaScript] TextPart.selection { get: function () { ... } set
+1 704-544-7445 (United States)
+1 855-533-8398 (United States, toll free)
Or send us an email: