---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/polygonannotation
---

# PolygonAnnotation

## Overview

`PolygonAnnotation` is a type in Aspose.PDF FOSS for Go.
Inherits from: `polyAnnotationBase`.

PolygonAnnotation draws a closed polygon through a list of vertices, with a stroked border and optional interior fill.

This type declares 2 methods for PolygonAnnotation objects in Go programs.
Available methods include: `AnnotationType`, `RegenerateAppearance`.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

## Methods

| Signature | Description |
|-----------|-------------|
| `AnnotationType()` → `AnnotationType` | Returns the annotation type. |
| `RegenerateAppearance()` | RegenerateAppearance forces /AP/N to be rebuilt from current properties. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)