TX Text Control .NET Server

Javascript: TextPart.index Property

PropertyDeprecated|Introduced in 24.0

Description

Obsolete. This property will be removed in one of the next versions. The 0-based index of the text part.

Syntax

<number> TextPart.index

Examples

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.