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

Gabriela
Posts: 436
Joined: Wed Nov 22, 2017 9:52 am

Re: Select an Annotation in 8.4

Post by Gabriela » Fri Mar 29, 2019 10:47 pm

Hello,

Here is the property you should use with the current release:
https://www.gdpicture.com/guides/gdpicture/web ... ected.html

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest