VintaSoft Imaging .NET SDK v8.5
changed Event
Vintasoft.Imaging.Annotation Namespace > WebAnnotationViewCollectionJS type : changed Event
Action name. Supported values: "clear", "insert", "set", "move" "remove", "swap".
Annotation. Property is defined for actions "insert", "set", "move", "remove".
Previous annotation. Property is defined for action "set".
Zero-based index of annotation for inserting/removing/setting of annotation. Property is defined only for actions "insert", "set" and "remove".
Zero-based index of the first annotation after swapping of annotations. Property is defined only for the action "swap".
Zero-based index of the second annotation after swapping of annotations. Property is defined only for the action "swap".
Zero-based index of annotation before moving of annotation. Property is defined only for the action "move".
Zero-based index of annotation after moving of annotation. Property is defined only for the action "move".
Array that contains all annotations from collection. Property is defined for action "clear".
Occurs when annotation collection is changed.
Syntax
var instance; // Type: WebAnnotationViewCollectionJS
instance.changed = function(actionName,
                            annotation,
                            previousAnnotation,
                            index,
                            firstIndex,
                            secondIndex,
                            previousIndex,
                            currentIndex,
                            annotations) { };
changed = function ( 
   actionName : string,
   annotation : object,
   previousAnnotation : object,
   index : number,
   firstIndex : number,
   secondIndex : number,
   previousIndex : number,
   currentIndex : number,
   annotations : object
) { };

Parameters

actionName
Action name. Supported values: "clear", "insert", "set", "move" "remove", "swap".
annotation
Annotation. Property is defined for actions "insert", "set", "move", "remove".
previousAnnotation
Previous annotation. Property is defined for action "set".
index
Zero-based index of annotation for inserting/removing/setting of annotation. Property is defined only for actions "insert", "set" and "remove".
firstIndex
Zero-based index of the first annotation after swapping of annotations. Property is defined only for the action "swap".
secondIndex
Zero-based index of the second annotation after swapping of annotations. Property is defined only for the action "swap".
previousIndex
Zero-based index of annotation before moving of annotation. Property is defined only for the action "move".
currentIndex
Zero-based index of annotation after moving of annotation. Property is defined only for the action "move".
annotations
Array that contains all annotations from collection. Property is defined for action "clear".
Requirements

Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also

Reference

WebAnnotationViewCollectionJS type