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