DeleteAnnotation Method (GdViewer)
Removes a required GdPicture/XMP annotation object specified by its index related to the current page of the document displayed in the GdViewer control.
Be aware that this method only handles GdPicture/XMP annotations.
How to delete all GdPicture/XMP annotations contained on the current page.
'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");