Javascript: TextPart.index Property
Description
Obsolete. This property will be removed in one of the next versions. The 0-based index of the text part.
Syntax
<number> TextPart.indexExamples
The following example demonstrates TextPart.index in a practical document-editing workflow. Obsolete. This property will be removed in one of the next versions. The 0-based index of the text part.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.textParts.getMainText(function(textPart) {
const index = textPart.index;
console.log("index:", index);
}, onTxError);Limitations
Read Only.