Select an Annotation in 8.4
Posted: 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)
{
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();