Javascript: FormattedText.comments Property
Description
Gets a collection of all comments in this text part.
Syntax
<CommentCollection> FormattedText.commentsExamples
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.