Class AnnotationCollection

AnnotationCollection class

Class representing annotation collection.

public sealed class AnnotationCollection : ICollection<Annotation>


Count { get; }Gets count of annotations in collection.
IsReadOnly { get; }Gets a value indicating if collection is readonly.
IsSynchronized { get; }Gets a value indicating whether access to the Aspose.Pdf.Annotations.AnnotationCollection is synchronized (thread safe).
Item { get; }The index of the element to get.
SyncRoot { get; }Gets an object that can be used to synchronize access to Aspose.Pdf.Annotations.AnnotationCollection.


Accept(AnnotationSelector)Accepts visitor to process annotation.
Add(Annotation)Adds annotation to the collection.
Add(Annotation, bool)Adds annotation to the collection. If page is rotated then annotation rectangle will be recalculated accordingly.
Clear()Deletes all annotations from the collection.
Contains(Annotation)Checks if specified annotation belong to collection.
CopyTo(Annotation[], int)Copies array of annotations into collection.
Delete()Deletes all annotations from the collection.
Delete(Annotation)Deletes specified annotation from the collection.
Delete(int)Deletes annotation from the collection by index.
FindByName(string)Returns annotation by its name.
GetEnumerator()Returns collection enumerator.
Remove(Annotation)Deletes specified annotation from the collection.

See Also