Search

Atalasoft Knowledge Base

HOWTO: Add a User-Defined Annotation (Windows Forms Controls)

Administrator
DotImage

This snippet shows how to prepare an AnnotateViewer to allow the user to create an annotation.

C#

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);
}

Original Article:
Q10168 - HOWTO: Add a User-Defined Annotation

Details
Last Modified: 2 Months Ago
Last Modified By: Administrator
Type: HOWTO
Article not rated yet.
Article has been viewed 45 times.
Options
Also In This Category