Accusoft.PdfXpress7.Net
DeleteAnnotation Method




The zero-based page number of the Document to retrieve the annotation from.
The zero-based annotation index of the page to retrieve the annotation from.
Removes the annotation at the specified annotation index from the specified page.
Syntax
'Declaration
 
Public Sub DeleteAnnotation( _
   ByVal pageIndex As Integer, _
   ByVal annotationIndex As Integer _
) 
'Usage
 
Dim instance As Document
Dim pageIndex As Integer
Dim annotationIndex As Integer
 
instance.DeleteAnnotation(pageIndex, annotationIndex)
public void DeleteAnnotation( 
   int pageIndex,
   int annotationIndex
)
public: void DeleteAnnotation( 
   int pageIndex,
   int annotationIndex
) 
public:
void DeleteAnnotation( 
   int pageIndex,
   int annotationIndex
) 

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.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionThrown when when the pageIndex or annotationIndex is outside of the acceptable range from 0 to the item count.
Remarks

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.

See Also

Reference

Document Class
Document Members

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback