DS Server

CommentedTextInfo Object

Object|Introduced in 30.0

Description

Information about a comment. Is used by class CommentEventArgs.

Syntax

{
   active: <boolean>,
   comment: <String>,
   creationTime: <Number>,
   highlightColor: <String>,
   highlightMode: <HighlightMode>,
   id: <Number>,
   length: <Number>,
   number: <Number>,
   start: <Number>,
   userName: <String>
}

Examples

The following example demonstrates CommentedTextInfo in a practical document-editing workflow. Information about a comment. Is used by class CommentEventArgs.

function inspectCommentedTextInfo(commentedTextInfo) {
    console.log("active:", commentedTextInfo.active);
    console.log("comment:", commentedTextInfo.comment);
    console.log("creation time:", commentedTextInfo.creationTime);
    console.log("highlight color:", commentedTextInfo.highlightColor);
}

Members

Properties

PropertyDescription
activeComment activation state.
commentThe comment text.
creationTimeCreation time as a Unix time stamp in milliseconds.
highlightColorHighlight color as a CSS color string.
highlightModeThe comment's highlight mode.
idThe comment's identifier.
lengthThe comment's length in characters.
numberThe number of the comment in the document's text flow.
startThe comment's 1-based start position in the document.
userNameThe name of the user who made the comment.