Select an Annotation in 8.4

Discussions about annotation support.
Post Reply
Shane
Posts: 2
Joined: Fri Nov 04, 2011 7:18 pm

Select an Annotation in 8.4

Post by Shane » Fri Nov 01, 2013 7:36 pm

How do I select an annotation after I created it. I know in later versions there is a gdviewer.selectannotation method, but how can I select it in 8.4 version.

Eg:

GdPicture.AnnotationManager oAnnotationManager = new GdPicture.AnnotationManager();
if (oAnnotationManager.InitFromGdViewer(gdViewer) == GdPicture.GdPictureStatus.OK)
{
  • GdPicture.AnnotationText annotText = oAnnotationManager.AddTextAnnot(float.Parse(getInfo("Left")), float.Parse(getInfo("Top")), float.Parse(getInfo("Width")), float.Parse(getInfo("Height")), getInfo("Text"));
    annotText.CanMove = bool.Parse(getInfo("CanMove"));
    annotText.CanResize = bool.Parse(getInfo("CanResize"));
    annotText.CanRotate = bool.Parse(getInfo("CanRotate"));
    annotText.FontName = getInfo("FontName");
    annotText.FontSize = float.Parse(getInfo("FontSize"));
    annotText.FontStyle = FontStyle.Regular;
    annotText.ForeColor = Color.Black;

    oAnnotationManager.SaveAnnotationsToPage();
}

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests