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


## PolygonAnnotation class

Class representing polygon annotation.

The PolygonAnnotation type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|PolygonAnnotation(document, vertices)|Initializes a new instance of the PolygonAnnotation class|
|PolygonAnnotation(page, rect, vertices)|Initializes a new instance of the PolygonAnnotation class|
## Properties
| Name | Description |
| :- | :- |
|vertical_alignment|None|
|horizontal_alignment|None|
|margin|None|
|is_first_paragraph_in_column|None|
|is_kept_with_next|None|
|is_in_new_page|None|
|is_in_line_paragraph|None|
|hyperlink|None|
|z_index|None|
|update_appearance_on_convert|None|
|use_font_subset|None|
|flags|None|
|annotation_type|Gets type of annotation.|
|width|None|
|actions|None|
|height|None|
|rect|None|
|contents|None|
|name|None|
|modified|None|
|color|None|
|border|None|
|active_state|None|
|characteristics|None|
|states|None|
|alignment|None|
|text_horizontal_alignment|None|
|full_name|None|
|appearance|None|
|page_index|None|
|title|Gets or sets a text that shall be displayed in title bar of annotation.|
|rich_text|Gets or sets a rich text string to be displayed in the pop-up window when the annotation is opened.|
|creation_date|Gets date and time when annotation was created.|
|subject|Gets text representing desciption of the object.|
|popup|Pop-up annotation for entering or editing the text associated with this annotation.|
|opacity|Gets or sets the constant opacity value to be used in painting the annotation.|
|in_reply_to|A reference to the annotation that this annotation is "in reply to".<br/>            Both annotations must be on the same page of the document.|
|reply_type|A string specifying the relationship (the "reply type") between this annotation<br/>            and one specified by InReplyTo.|
|measure|Measure units specifed for this annotation.|
|vertices|Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex.|
|interior_color|Gets or sets the interior color with which to fill the annotation�s line endings.|
|starting_style|Gets or sets the style of first line ending.|
|ending_style|Gets or sets the style of second line ending.|
|intent|Gets or sets the intent of the polygon or polyline annotation.|
## Methods
| Name | Description |
| :- | :- |
|clone()|None|
|get_rectangle(consider_rotation)|None|
|accept(visitor)|Accepts visitor object for annotation processing.|
|flatten()|None|
|change_after_resize(transform)|Updates the points in Vertices, according to the matrix transform.|

### See Also

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

