---
title: "AnnotationSelector"
url: "https://reference.aspose.com/pdf/python-net/aspose.pdf.annotations/annotationselector/"
product: "Aspose.PDF for Python via .NET API Reference"
description: "This class is used for selecting annotations using Visitor template idea."
---


## AnnotationSelector class

This class is used for selecting annotations using Visitor template idea.

The AnnotationSelector type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|AnnotationSelector()|Initializes new instance of the AnnotationSelector class.|
|AnnotationSelector(annotation)|Initializes a new instance of the AnnotationSelector class|
## Properties
| Name | Description |
| :- | :- |
|selected|The list of selected objects.|
## Methods
| Name | Description |
| :- | :- |
|visit(link)|Select link annotation if AnnotationSelector was initialized with LinkAnnotation object.|
|visit(attachment)|Select attachment annotation if AnnotationSelector was initialized with FileAttachmentAnnotation object.|
|visit(text)|Select text annotation if AnnotationSelector was initialized with TextAnnotation object.|
|visit(redact)|Select redact annotation if AnnotationSelector was initialized with RedactAnnotation object.|
|visit(freetext)|Select freetext annotation if AnnotationSelector was initialized with FreeTextAnnotation object.|
|visit(highlight)|Select attachment annotation if AnnotationSelector was initialized with FreeTextAnnotation object.|
|visit(underline)|Select underline annotation if AnnotationSelector was initialized with UnderlineAnnotation object.|
|visit(strike_out)|Select strikeOut annotation if AnnotationSelector was initialized with StrikeOutAnnotation object.|
|visit(squiggly)|Select squiggly annotation if AnnotationSelector was initialized with SquigglyAnnotation object.|
|visit(popup)|Select popup annotation if AnnotationSelector was initialized with PopupAnnotation object.|
|visit(line)|Select underline annotation if AnnotationSelector was initialized with UnderlineAnnotation object.|
|visit(circle)|Select circle annotation if AnnotationSelector was initialized with CircleAnnotation object.|
|visit(square)|Select square annotation if AnnotationSelector was initialized with SquareAnnotation object.|
|visit(ink)|Select link annotation if AnnotationSelector was initialized with LinkAnnotation object.|
|visit(polyline)|Select polyline annotation if AnnotationSelector was initialized with PolylineAnnotation object.|
|visit(polygon)|Select polygon annotation if AnnotationSelector was initialized with PolygonAnnotation object.|
|visit(caret)|Select caret annotation if AnnotationSelector was initialized with CaretAnnotation object.|
|visit(stamp)|Select stamp annotation if AnnotationSelector was initialized with StampAnnotation object.|
|visit(widget)|Select widget annotation if AnnotationSelector was initialized with WidgetAnnotation object.|
|visit(watermark)|Select watermark annotation if AnnotationSelector was initialized with WatermarkAnnotation object.|
|visit(movie)|Select movie annotation if AnnotationSelector was initialized with MovieAnnotation object.|
|visit(rich_media)|Select movie annotation if AnnotationSelector was initialized with RichMedia annotation object.|
|visit(screen)|Select screen annotation if AnnotationSelector was initialized with ScreenAnnotation object.|
|visit(pdf_3d)|Select PDF3D annotation if AnnotationSelector was initialized with PDF3DAnnotation object.|

### See Also

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

