TX Text Control .NET Server

Javascript: FormattedText.documentLinks Property

Property|Introduced in 28.0

Description

Gets a collection of all links which point to targets in the same document.

Syntax

<DocumentLinkCollection> FormattedText.documentLinks

Examples

The following example demonstrates FormattedText.documentLinks in a practical document-editing workflow. It gets a collection of all links which point to targets in the same document.

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

TXTextControl.textParts.getMainText(function(formattedText) {
    formattedText.documentLinks.getCount(function(count) {
        console.log("document links count:", count);
    }, onTxError);
}, onTxError);

Limitations

Read Only.