'We assume that the GdViewer1 control has been properly integrated
'and your document has been properly displayed as well.
Dim annotCount As Integer = GdViewer1.GetAnnotationCount()
Dim message As String = "The number of GdPicture/XMP annotations on the current page: " + annotCount
Dim annot As GdPicture14.Annotations.Annotation = Nothing
If annotCount > 0 Then
annot = GdViewer1.GetAnnotationFromIdx(0)
message = message + vbCrLf + "The author of the first one is: " + annot.Author
End If
MessageBox.Show(message, "GdViewer.GetAnnotationCount")
//We assume that the GdViewer1 control has been properly integrated
//and your document has been properly displayed as well.
int annotCount = GdViewer1.GetAnnotationCount();
string message = "The number of GdPicture/XMP annotations on the current page: " + annotCount;
GdPicture14.Annotations.Annotation annot = null;
if (annotCount > 0)
{
annot = GdViewer1.GetAnnotationFromIdx(0);
message = message + "\nThe author of the first one is: " + annot.Author;
}
MessageBox.Show(message, "GdViewer.GetAnnotationCount");