Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- pageIndex
- The zero-based page number of the Document to retrieve the annotation from.
- annotationIndex
- The zero-based annotation index of the page to retrieve the annotation from.
| Exception | Description |
|---|---|
| System.ArgumentOutOfRangeException | Thrown when when the pageIndex or annotationIndex is outside of the acceptable range from 0 to the item count. |
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.