AnnotationCollection Class
Class representing annotation collection.
Inheritance Hierarchy
SystemObject
  Aspose.Pdf.AnnotationsAnnotationCollection

Namespace: Aspose.Pdf.Annotations
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntax
public sealed class AnnotationCollection : ICollection<Annotation>, 
	IEnumerable<Annotation>, IEnumerable

The AnnotationCollection type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets count of annotations in collection.
Public propertyIsReadOnly
Gets a value indicating if collection is readonly.
Public propertyIsSynchronized
Gets a value indicating whether access to the Aspose.Pdf.Annotations.AnnotationCollection is synchronized (thread safe).
Public propertyItem
The index of the element to get.
Public propertySyncRoot
Gets an object that can be used to synchronize access to Aspose.Pdf.Annotations.AnnotationCollection.
Methods
  NameDescription
Public methodAccept
Accepts visitor to process annotation.
Public methodAdd(Annotation)
Adds annotation to the collection.
Public methodAdd(Annotation, Boolean)
Adds annotation to the collection. If page is rotated then annotation rectangle will be recalculated accordingly.
Public methodClear
Deletes all annotations from the collection.
Public methodContains
Checks if specified annotation belong to collection.
Public methodCopyTo
Copies array of annotations into collection.
Public methodDelete
Deletes all annotations from the collection.
Public methodDelete(Int32)
Deletes annotation from the collection by index.
Public methodDelete(Annotation)
Deletes specified annotation from the collection.
Public methodEquals (Inherited from Object.)
Public methodGetEnumerator
Returns collection enumerator.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodRemove
Deletes specified annotation from the collection.
Public methodToString (Inherited from Object.)
See Also