Is there any way I can programmatically remove an annotation? I am able to hide it using:
Code: Select all
imageViewer1.SelectedAnnotation.Visible = false;
Thanks
Moderator: Alex
Code: Select all
imageViewer1.SelectedAnnotation.Visible = false;
Code: Select all
AnnotationBase annoToRemove = annotationViewer1.Annotations[imageIndex][indexOfAnnoToRemove];
annotationViewer1.Annotations[imageIndex].RemoveAt(annoToRemove);