Page 1 of 1

check if AnnotationViewer has changed

Posted: Sat Apr 18, 2015 4:07 pm
by GHWels
Hallo,

Is there a parameter to check if the AnnotationViewer1 has changed,
when I add or delete annotations
or I rotate the Image?

Thank you

Re: check if AnnotationViewer has chaned

Posted: Sat Apr 18, 2015 5:00 pm
by Alex
Hello,
Is there a parameter to check if the AnnotationViewer1 has changed, when I add or delete annotations
You need subscribe to the AnnotationDataCollection.Changing or AnnotationDataCollection.Changed event if you want to monitor changes in annotation collection. You need subscribe to the AnnotationDataCollection.ItemPropertyChanging or AnnotationDataCollection.ItemPropertyChanged event if you want to monitor changes in annotation. Reference to the annotation collection can be get using the AnnotationViewer.AnnotationDataCollection property.

or I rotate the Image?
You need subscribe to the VintasoftImage.Changed event if you want to monitor image changes. Reference to the image can be get using ImageViewer.Image or ImageViewer.Images property.

Best regards, Alexander