DS Server

Javascript: FormattedText.comments Property

Property|Introduced in 30.0

Description

Gets a collection of all comments in this text part.

Syntax

<CommentCollection> FormattedText.comments

Examples

The following example demonstrates FormattedText.comments in a practical document-editing workflow. It gets a collection of all comments in this text part.

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

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

Limitations

Read Only.