Parameters
- annotation
- An annotation (instance of WebAnnotationViewJS type) that should be commented.
- userName
- The name of user, who added the comment.
Return Value
An annotation comment (an instance of WebAnnotationCommentJS type).
| Exception | Description |
|---|---|
| Thrown if argument has wrong type. |
This function raises the "commentAdded" event if comment is added.