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

# LinkAnnotation

## Overview

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

LinkAnnotation is a clickable region.

This type declares 7 methods for LinkAnnotation objects in Go programs.
Available methods include: `Action`, `AnnotationType`, `BorderWidth`, `Highlight`, `SetAction`, `SetBorderWidth`, `SetHighlight`.
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. |
| `Action()` → `Action` | Action returns the action attached to this link, or nil if no /A is present or the action type is unsupported. |
| `SetAction(act: Action)` | SetAction writes the /A entry. |
| `Highlight()` → `LinkHighlightMode` | Highlight returns the click-feedback mode (/H entry). |
| `SetHighlight(h: LinkHighlightMode)` | SetHighlight writes the /H entry. |
| `BorderWidth()` → `float64` | BorderWidth returns the width (in points) of the rectangular border drawn around the link annotation. |
| `SetBorderWidth(width: float64)` | SetBorderWidth writes the /Border entry — [horiz-corner-radius vert-corner-radius border-width]. |

## See Also

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