AnnotationManager Constructor
In This Topic
A standard constructor for the AnnotationManager class. It initializes an instance of the AnnotationManager class.
Syntax
'Declaration
Public Function New()
public AnnotationManager()
public AnnotationManager();
public function AnnotationManager();
public: AnnotationManager();
public:
AnnotationManager();
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();
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();
See Also