PDFReaderControls.NET Professional Type Reference

AnnotationCollection.Add Method 

Adds an Annotation to the end of the AnnotationCollection.

public int Add(
   Annotation annotation
);

Parameters

annotation
The Annotation to be addded to the end of the AnnotationCollection.

Return Value

The AnnotationCollection index at which the Annotation has been added.

Remarks

AnnotationCollection does not accept a a null reference as a valid value.

AnnotationCollection does not accept duplicate elements.

Exceptions

Exception TypeCondition
ArgumentNullExceptionThe given annotation is a null reference.
ArgumentExceptionThe given annotation is already in this AnnotationCollection. (Duplicate annotation)

See Also

AnnotationCollection Class | TallComponents.PDF.Annotations Namespace