In This Topic
Inserts an annotation comment to the collection.
Syntax
var instance = new Vintasoft.Imaging.Annotation.UI.WebAnnotationCommentCollectionJS(parent);
var value; // Type: any
// Parameters
var index; // Type: number
var comment; // Type: WebAnnotationCommentJS
value = instance.insert(index, comment);
function insert(
: number,
: WebAnnotationCommentJS
) : any;
Parameters
- index
- The zero-based index at which the annotation comment should be inserted.
- comment
- An annotation comment that should be inserted.
Exceptions
Exception | Description |
| Thrown if argument has wrong type. |
| Thrown if index is less than zero or index is greater than collection length. |
| Thrown if annotation comment already exists in collection. |
Browser Compatibility
See Also