GdPicture.NET.14.API
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
 
<ObfuscationAttribute(Exclude=True, ApplyToMembers=False)>
Public NotInheritable Class AnnotationManager 
[Obfuscation(Exclude=true, ApplyToMembers=false)]
public sealed class AnnotationManager 
public class AnnotationManager sealed; 
ObfuscationAttribute(Exclude=, ApplyToMembers=)
public sealed class AnnotationManager 
[Obfuscation(Exclude=true, ApplyToMembers=false)]
public __gc __sealed class AnnotationManager 
[Obfuscation(Exclude=true, ApplyToMembers=false)]
public ref class AnnotationManager sealed 
Example
How to create and dispose of the AnnotationManager object.
Dim annotationManager As AnnotationManager = New AnnotationManager()
If annotationManager.InitFromFile("test.tif") = GdPictureStatus.OK Then
    MessageBox.Show("The number of pages: " + annotationManager.PageCount, "AnnotationManager")
Else
    MessageBox.Show("The AnnotationManager can't be properly initialized. Status: " + annotationManager.GetStat().ToString(), "AnnotationManager")
End If
annotationManager.Dispose()
AnnotationManager annotationManager = new AnnotationManager();
if (annotationManager.InitFromFile("test.tif") == GdPictureStatus.OK)
{
    MessageBox.Show("The number of pages: " + annotationManager.PageCount, "AnnotationManager");
}
else
    MessageBox.Show("The AnnotationManager can't be properly initialized. Status: " + annotationManager.GetStat().ToString(), "AnnotationManager");
annotationManager.Dispose();
Inheritance Hierarchy

System.Object
   GdPicture14.AnnotationManager

See Also