Javascript: FormattedText.documentTargets Property
Description
Gets a collection of all document targets.
Syntax
<DocumentTargetCollection> FormattedText.documentTargetsExamples
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.