DS Server

Javascript: TXTextControl.textFrames Property

Property|Introduced in 25.0

Description

Gets a collection of all text frames in the document.

Syntax

<TextFrameCollection> TXTextControl.textFrames

Examples

The following example demonstrates TXTextControl.textFrames in a practical document-editing workflow. It gets a collection of all text frames in the document.

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

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