TX Text Control .NET Server

Javascript: FormattedText.documentTargets Property

Property|Introduced in 28.0

Description

Gets a collection of all document targets.

Syntax

<DocumentTargetCollection> FormattedText.documentTargets

Examples

The following example demonstrates FormattedText.documentTargets in a practical document-editing workflow. It gets a collection of all document targets.

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

TXTextControl.textParts.getMainText(function(formattedText) {
    formattedText.documentTargets.getCount(function(count) {
        console.log("document targets count:", count);
    }, onTxError);
}, onTxError);

Limitations

Read Only.