---
title: "AnnotationCollection"
url: "https://reference.aspose.com/pdf/python-net/aspose.pdf.annotations/annotationcollection/"
product: "Aspose.PDF for Python via .NET API Reference"
description: "Class representing annotation collection."
---


## AnnotationCollection class

Class representing annotation collection.

The AnnotationCollection type exposes the following members:
## Properties
| Name | Description |
| :- | :- |
|is_synchronized|Gets a value indicating whether access to the Aspose.Pdf.Annotations.AnnotationCollection is synchronized (thread safe).|
|sync_root|Gets an object that can be used to synchronize access to Aspose.Pdf.Annotations.AnnotationCollection.|
## Indexer
| Name | Description |
| :- | :- |
|[index]|The index of the element to get.|
## Methods
| Name | Description |
| :- | :- |
|delete(index)|Deletes annotation from the collection by index.|
|delete()|Deletes annotation from the collection by index.|
|delete(annotation)|Deletes annotation from the collection by index.|
|add(annotation, consider_rotation)|Adds annotation to the collection. If page is rotated then annotation rectangle will be recalculated accordingly.|
|accept(visitor)|Accepts visitor to process annotation.|
|find_by_name(name)|Returns annotation by its name.|

### See Also

* namespace [aspose.pdf.annotations](/pdf/python-net/aspose.pdf.annotations/)
* assembly [Aspose.PDF](/pdf/python-net/)

