VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI.Panels Namespace / WebUiAnnotationCommentListPanelJS type / addComment Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
addComment Method
In This Topic
Adds comment to the specified annotation.
Syntax
var instance = new Vintasoft.Imaging.Annotation.UI.Panels.WebUiAnnotationCommentListPanelJS(settings, stateButton);

var value; // Type: object

// Parameters
var annotation; // Type: object
var userName; // Type: string

value = instance.addComment(annotation, userName);

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).
Exceptions
ExceptionDescription
Thrown if argument has wrong type.
Remarks

This function raises the "commentAdded" event if comment is added.

Browser Compatibility
56+
45+
11
See Also