| PdfDocument Object : DeleteAnnotation Method |
| Visual Basic |
|---|
Public Sub DeleteAnnotation( _ ByVal WhichPage As Long, _ ByVal WhichAnnotation As Long _ ) |
When the annotation is removed, the underlying array structure holding the annotations is reduced in size immediately. So if removing all annotations on a page for example you must write a loop that decrements starting with the last index.