Searches the collection for the specified annotation.

Namespace: Spire.Pdf.Annotations
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 6.2.6.0 (6.2.6.2020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public int IndexOf(
	PdfAnnotation annotation
)
Public Function IndexOf ( 
	annotation As PdfAnnotation
) As Integer
public:
int IndexOf(
	PdfAnnotation^ annotation
)
member IndexOf : 
        annotation : PdfAnnotation -> int 

Parameters

annotation
PdfAnnotation
The Annotation to search.

Return Value

Int32
Index of the element in the collection, if exists, or -1 if the element does not exist in the collection.

See Also