---
title: "Aspose::Pdf::Annotations::Annotation class"
url: "https://reference.aspose.com/pdf/cpp/aspose.pdf.annotations/annotation/"
product: "Aspose.PDF for C++ API Reference"
description: "Aspose::Pdf::Annotations::Annotation class. Class representing annotation object in C++."
---

## Annotation class


Class representing annotation object.

```cpp
class Annotation : public Aspose::Pdf::BaseParagraph
```

## Methods

| Method | Description |
| --- | --- |
| virtual [Accept](./accept/)(const System::SharedPtr\<AnnotationSelector\>\&) | Accepts visitor for annotation processing. |
| virtual [ChangeAfterResize](./changeafterresize/)(const System::SharedPtr\<Matrix\>\&) | Update parameters and appearance, according to the matrix transform. |
| virtual [Flatten](./flatten/)() | Places annotation contents directly on the page, annotation object will be removed. |
| [get_Actions](./get_actions/)() | Gets list of annotatation actions. |
| virtual [get_ActiveState](./get_activestate/)() | Gets current annotation appearance state. |
| [get_Alignment](./get_alignment/)() | [Annotation](./) alignment. This property is obsolete. Use HorizontalAligment instead. |
| virtual [get_AnnotationType](./get_annotationtype/)() | Gets type of annotation. |
| [get_Appearance](./get_appearance/)() | Gets appearance dictionary of the annotation. |
| [get_Border](./get_border/)() const | Gets annotation border characteristics. [Border](../border/). |
| [get_Characteristics](./get_characteristics/)() | Gets annotation characteristics. |
| [get_Color](./get_color/)() | Gets annotation color. |
| [get_Contents](./get_contents/)() | Gets annotation text. |
| [get_Flags](./get_flags/)() | Flags of the annotation. |
| [get_FullName](./get_fullname/)() | Gets full qualified name of the annotation. |
| virtual [get_Height](./get_height/)() | Gets height of the annotation. |
| [get_HorizontalAlignment](./get_horizontalalignment/)() override | Gets text alignment for annotation. |
| [get_Modified](./get_modified/)() | Gets date and time when annotation was recently modified. |
| [get_Name](./get_name/)() | Gets annotation name on the page. |
| virtual [get_PageIndex](./get_pageindex/)() | Gets index of page which contains annotation. |
| virtual [get_Rect](./get_rect/)() | Gets annotation rectangle. |
| [get_States](./get_states/)() | Gets appearance dictionary of annotation. |
| [get_TextHorizontalAlignment](./get_texthorizontalalignment/)() | Gets text alignment for annotation. |
| static [get_UpdateAppearanceOnConvert](./get_updateappearanceonconvert/)() | If true, annotation appearance will be updated before converting PF document into image. This allows convert fields correctly but probably demand more time. |
| static [get_UseFontSubset](./get_usefontsubset/)() | If this property set to true, fonts will be added to document as subsets. Default value is true. |
| virtual [get_Width](./get_width/)() | Gets width of the annotation. |
| [GetRectangle](./getrectangle/)(bool) | Returns rectangle of annotation taking into consideration page rotation. |
| virtual [set_ActiveState](./set_activestate/)(System::String) | Sets current annotation appearance state. |
| [set_Alignment](./set_alignment/)(TextAlignment) | [Annotation](./) alignment. This property is obsolete. Use HorizontalAligment instead. |
| [set_Border](./set_border/)(const System::SharedPtr\<Aspose::Pdf::Annotations::Border\>\&) | Sets annotation border characteristics. [Border](../border/). |
| [set_Color](./set_color/)(const System::SharedPtr\<Aspose::Pdf::Color\>\&) | Sets annotation color. |
| [set_Contents](./set_contents/)(const System::String\&) | Sets annotation text. |
| [set_Flags](./set_flags/)(AnnotationFlags) | Flags of the annotation. |
| virtual [set_Height](./set_height/)(double) | Sets height of the annotation. |
| [set_HorizontalAlignment](./set_horizontalalignment/)(Aspose::Pdf::HorizontalAlignment) override | Sets text alignment for annotation. |
| [set_Modified](./set_modified/)(System::DateTime) | Sets date and time when annotation was recently modified. |
| [set_Name](./set_name/)(const System::String\&) | Sets annotation name on the page. |
| virtual [set_Rect](./set_rect/)(System::SharedPtr\<Rectangle\>) | Sets annotation rectangle. |
| [set_TextHorizontalAlignment](./set_texthorizontalalignment/)(Aspose::Pdf::HorizontalAlignment) | Sets text alignment for annotation. |
| static [set_UpdateAppearanceOnConvert](./set_updateappearanceonconvert/)(bool) | If true, annotation appearance will be updated before converting PF document into image. This allows convert fields correctly but probably demand more time. |
| static [set_UseFontSubset](./set_usefontsubset/)(bool) | If this property set to true, fonts will be added to document as subsets. Default value is true. |
| virtual [set_Width](./set_width/)(double) | Sets width of the annotation. |
## See Also

* Class [BaseParagraph](../../aspose.pdf/baseparagraph/)
* Namespace [Aspose::Pdf::Annotations](../)
* Library [Aspose.PDF for C++](../../)
