VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.Annotation Namespace / WebAnnotationViewCollectionJS type / changed Event
Syntax BrowserCompatibility SeeAlso
In This Topic
changed Event (WebAnnotationViewCollectionJS)
In This Topic
Occurs when annotation collection is changed.
Syntax
var instance; // Type: WebAnnotationViewCollectionJS
instance.changed = function(event) { }

Parameters

event
Object that contains information about event. Object has the following properties:
  • target (object): An object that raised the event.
  • type (string): Event name.
  • data (object): An object that contains data, which were specified when subscribing to the event.
  • originalEvent (object): Original event if event was received from DOM-element.
eventArgs
Object that contains event arguments. Object has the following properties:
  • actionName (string): Action name. Supported values: "clear", "insert", "set", "move", "remove", "swap".
  • annotation (object): WebAnnotationViewJS object. Property is defined for actions "insert", "set", "move", "remove".
  • previousAnnotation (object): Previous WebAnnotationViewJS object. Property is defined for action "set".
  • index (number): Zero-based index of annotation for inserting/removing/setting of annotation. Property is defined only for actions "insert", "set" and "remove".
  • firstIndex (number): Zero-based index of the first annotation after swapping of annotations. Property is defined only for the action "swap".
  • secondIndex (number): Zero-based index of the second annotation after swapping of annotations. Property is defined only for the action "swap".
  • previousIndex (number): Zero-based index of annotation before moving of annotation. Property is defined only for the action "move".
  • currentIndex (number): Zero-based index of annotation after moving of annotation. Property is defined only for the action "move".
  • annotations (object): Array that contains all WebAnnotationViewJS objects from collection. Property is defined for action "clear".
Browser Compatibility
56+
45+
11
See Also