'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()
For i As Integer = 1 To annotCount
GdViewer1.DeleteAnnotation(0)
If GdViewer1.GetStat() <> GdPictureStatus.OK Then Exit For
Next
MessageBox.Show("Done! Status: " + GdViewer1.GetStat().ToString(), "GdViewer.DeleteAnnotation")
//We assume that the GdViewer1 control has been properly integrated
//and your document has been properly displayed as well.
int annotCount = GdViewer1.GetAnnotationCount();
for (int i = 1; i <= annotCount; i++)
{
GdViewer1.DeleteAnnotation(0);
if (GdViewer1.GetStat() != GdPictureStatus.OK)
break;
}
MessageBox.Show("Done! Status: " + GdViewer1.GetStat().ToString(), "GdViewer.DeleteAnnotation");