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

# TextAnnotation

## Overview

`TextAnnotation` is a type in Aspose.PDF FOSS for Go.
Inherits from: `annotationBase`.

TextAnnotation is a sticky-note annotation.

This type declares 6 methods for TextAnnotation objects in Go programs.
Available methods include: `AnnotationType`, `Icon`, `Open`, `RegenerateAppearance`, `SetIcon`, `SetOpen`.
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. |
| `Icon()` → `TextIcon` | Icon returns the /Name value mapped to a TextIcon. |
| `SetIcon(t: TextIcon)` | SetIcon writes the /Name entry. |
| `Open()` → `bool` | Open returns the /Open flag (whether the popup is initially shown). |
| `SetOpen(open: bool)` | SetOpen writes the /Open flag. |
| `RegenerateAppearance()` | RegenerateAppearance is a no-op for TextAnnotation (no /AP — viewers render the icon themselves). |

## See Also

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