Javascript: FormattedText.frames Property
Description
Gets a collection of all frames in the document.
Syntax
<FrameCollection> FormattedText.framesExamples
The following example demonstrates FormattedText.frames in a practical document-editing workflow. It gets a collection of all frames in the document.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.textParts.getMainText(function(formattedText) {
formattedText.frames.getCount(function(count) {
console.log("frames count:", count);
}, onTxError);
}, onTxError);