GdPicture.NET Reference Guide
AnnotationManager Class
Members  Example 





GdPicture14 Namespace : AnnotationManager Class
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

Reference

AnnotationManager Members
GdPicture14 Namespace
AnnotationManager Constructor
Dispose Method