Reference Guide
GdPicture14 Namespace / AnnotationManager Class
Members Example





In This Topic
    AnnotationManager Class
    In This Topic
    The AnnotationManager class provides all the necessary handling of the GdPictureXMP annotations in your files. Using this class, you can create or load annotations, change their properties and save them directly to your document. The initialisation of the AnnotationManager object is possible from more sources, like GdViewer control, GdPictureImage object or GdPicturePDF class and others.
    Syntax
    'Declaration
     
    
    Public NotInheritable Class AnnotationManager 
    public sealed class AnnotationManager 
    public class AnnotationManager sealed; 
    public sealed class AnnotationManager 
    public __gc __sealed class AnnotationManager 
    public ref class AnnotationManager sealed 
    Example
    How to create and dispose of the AnnotationManager object.
    Dim oAnnotManager As AnnotationManager = New AnnotationManager()
    If oAnnotManager.InitFromFile("test.tif") = GdPictureStatus.OK Then
        MessageBox.Show("The number of pages: " + oAnnotManager.PageCount, "AnnotationManager")
    Else
        MessageBox.Show("The AnnotationManager can't be properly initialized. Status: " + oAnnotManager.GetStat().ToString(), "AnnotationManager")
    End If
    oAnnotManager.Dispose()
    AnnotationManager oAnnotManager = new AnnotationManager();
    if (oAnnotManager.InitFromFile("test.tif") == GdPictureStatus.OK)
    {
        MessageBox.Show("The number of pages: " + oAnnotManager.PageCount, "AnnotationManager");
    }
    else
        MessageBox.Show("The AnnotationManager can't be properly initialized. Status: " + oAnnotManager.GetStat().ToString(), "AnnotationManager");
    oAnnotManager.Dispose();
    Inheritance Hierarchy

    System.Object
       GdPicture14.AnnotationManager

    See Also