## AnnotationSelector class

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

```csharp
public sealed class AnnotationSelector : IAnnotationVisitor
```

## Constructors

| Name | Description |
| --- | --- |
| [AnnotationSelector](annotationselector/#constructor)() | Initializes new instance of the AnnotationSelector class. |
| [AnnotationSelector](annotationselector/#constructor_1)(Annotation) | Initializes new `AnnotationSelector` object. |

## Properties

| Name | Description |
| --- | --- |
| [Selected](../../aspose.pdf.annotations/annotationselector/selected/) { get; } | The list of selected objects. |

## Methods

| Name | Description |
| --- | --- |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit)(BleedMarkAnnotation) | Selects the *bleedMark* if the `AnnotationSelector` was initialized with a [`BleedMarkAnnotation`](../bleedmarkannotation/) object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_1)(CaretAnnotation) | Select caret annotation if AnnotationSelector was initialized with CaretAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_2)(CircleAnnotation) | Select circle annotation if AnnotationSelector was initialized with CircleAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_3)(ColorBarAnnotation) | Select ColorBar annotation if AnnotationSelector was initialized with ColorBar object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_4)(FileAttachmentAnnotation) | Select attachment annotation if AnnotationSelector was initialized with FileAttachmentAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_5)(FreeTextAnnotation) | Select freetext annotation if AnnotationSelector was initialized with FreeTextAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_6)(HighlightAnnotation) | Select attachment annotation if AnnotationSelector was initialized with FreeTextAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_7)(InkAnnotation) | Select ink annotation if AnnotationSelector was initialized with InkAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_8)(LineAnnotation) | Select line annotation if AnnotationSelector was initialized with LineAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_9)(LinkAnnotation) | Select link annotation if AnnotationSelector was initialized with LinkAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_10)(MovieAnnotation) | Select movie annotation if AnnotationSelector was initialized with MovieAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_11)(PageInformationAnnotation) | Selects the *pageInformation* if the `AnnotationSelector` was initialized with a [`PageInformationAnnotation`](../pageinformationannotation/) object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_12)(PDF3DAnnotation) | Select PDF3D annotation if AnnotationSelector was initialized with PDF3DAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_13)(PolygonAnnotation) | Select polygon annotation if AnnotationSelector was initialized with PolygonAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_14)(PolylineAnnotation) | Select polyline annotation if AnnotationSelector was initialized with PolylineAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_15)(PopupAnnotation) | Select popup annotation if AnnotationSelector was initialized with PopupAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_16)(RedactionAnnotation) | Select redact annotation if AnnotationSelector was initialized with RedactAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_17)(RegistrationMarkAnnotation) | Selects the *registrationMark* if the `AnnotationSelector` was initialized with a [`RegistrationMarkAnnotation`](../registrationmarkannotation/) object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_18)(RichMediaAnnotation) | Select movie annotation if AnnotationSelector was initialized with RichMedia annotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_19)(ScreenAnnotation) | Select screen annotation if AnnotationSelector was initialized with ScreenAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_20)(SquareAnnotation) | Select square annotation if AnnotationSelector was initialized with SquareAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_21)(SquigglyAnnotation) | Select squiggly annotation if AnnotationSelector was initialized with SquigglyAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_22)(StampAnnotation) | Select stamp annotation if AnnotationSelector was initialized with StampAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_23)(StrikeOutAnnotation) | Select strikeOut annotation if AnnotationSelector was initialized with StrikeOutAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_24)(TextAnnotation) | Select text annotation if AnnotationSelector was initialized with TextAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_25)(TrimMarkAnnotation) | Selects the *trimMark* if the `AnnotationSelector` was initialized with a [`TrimMarkAnnotation`](../trimmarkannotation/) object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_26)(UnderlineAnnotation) | Select underline annotation if AnnotationSelector was initialized with UnderlineAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_27)(WatermarkAnnotation) | Select watermark annotation if AnnotationSelector was initialized with WatermarkAnnotation object. |
| [Visit](../../aspose.pdf.annotations/annotationselector/visit/#visit_28)(WidgetAnnotation) | Select widget annotation if AnnotationSelector was initialized with WidgetAnnotation object. |

### See Also

* interface [IAnnotationVisitor](../iannotationvisitor/)
* namespace [Aspose.Pdf.Annotations](../../aspose.pdf.annotations/)
* assembly [Aspose.PDF](../../)


