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