Creates a comment with the specified comment string. The current text selection defines the commented text.

<void> CommentCollection.add(<string> comment, [<AddCommentCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
comment The comment string.
callback Optional. Receives the result of the add operation.
errorCallback Optional. Is called when the operation failed with an error.