TX Text Control .NET Server

Javascript: TXTextControl.textParts Property

Property

Description

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

<TextPartCollection> TXTextControl.textParts

Examples

The following example demonstrates TXTextControl.textParts in a practical document-editing workflow. It 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.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

tXTextControl.textParts.getCount(function(count) {
    console.log("text parts count:", count);
}, onTxError);

Limitations

Read Only.