TX Text Control .NET Server

Javascript: FormattedText.tablesOfContents Property

Property|Introduced in 29.0

Description

Gets the current tables of contents.

Syntax

<TableOfContentsCollection> FormattedText.tablesOfContents

Examples

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.