Adds an Annotation to the end of the AnnotationCollection.
Namespace: TallComponents.PDF.AnnotationsAssembly: 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
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | The given annotation is nullNothingnullptra null reference (Nothing in Visual Basic). |
| System..::..ArgumentException | The given annotation is already in this AnnotationCollection. (Duplicate annotation) |