Adds an Annotation to the end of the AnnotationCollection.

Namespace: TallComponents.PDF.Annotations
Assembly: TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 3.0.69.1

Syntax

C#
public void Add(
	Annotation annotation
)
Visual Basic
Public Sub Add ( _
	annotation As Annotation _
)

Parameters

annotation
Type: TallComponents.PDF.Annotations..::..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 nullNothingnullptra null reference (Nothing in Visual Basic) as a valid value.

AnnotationCollection does not accept duplicate elements.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe given annotation is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..ArgumentExceptionThe given annotation is already in this AnnotationCollection. (Duplicate annotation)

See Also