Home : Annotations : Manipulating : Add a User-Defined Annotation
Q10168 - HOWTO: Add a User-Defined Annotation
This snippet shows how to prepare an AnnotateViewer to allow the user to create an annotation.
private void AddUserCreatedRectangleAnnotation(AnnotateViewer viewer)
{
    // make the annot template
    RectangleAnnotation annot = new RectangleAnnotation(new AnnotationBrush(Color.PowderBlue), new AnnotationPen(Color.Black));

    // next user mouse event with make it
    viewer.Annotations.CreateAnnotation(annot);
}
Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2017. InstantASP Ltd. All Rights Reserved