VintaSoft Annotation .NET Plug-in Discussions
Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.
Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions
Dim images As ImageCollection = AnnotationViewer1.Images
Dim annotations As AnnotationController = New AnnotationController(images)
Dim imageIndex As Integer, annoIndex As Integer
For imageIndex = 0 To images.Count - 1
Dim imageAnnotations As AnnotationCollection = annotations(imageIndex)
For annoIndex = 0 To imageAnnotations.Count - 1
Debug.Print(imageAnnotations(annoIndex).Visible.ToString)
imageAnnotations(annoIndex).Visible = Not imageAnnotations(annoIndex).Visible
Next annoIndex
Next imageIndex
But I must reload the image to see the annoations visible false/true.Dim annotations As AnnotationController = New AnnotationController(images)and here is correct code:
Dim annotations As AnnotationController = annotationViewer1.AnnotationsBest regards, Alexander