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

# PolylineAnnotation

## Overview

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

PolylineAnnotation draws an open polyline through a list of vertices, with a stroked border, optional line endings at the first and last vertex, and optional interior fill for closed endings.

This type declares 6 methods for PolylineAnnotation objects in Go programs.
Available methods include: `AnnotationType`, `EndLineEnding`, `RegenerateAppearance`, `SetEndLineEnding`, `SetStartLineEnding`, `StartLineEnding`.
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. |
| `StartLineEnding()` → `LineEndingStyle` | StartLineEnding returns the style applied to the first vertex. |
| `EndLineEnding()` → `LineEndingStyle` | EndLineEnding returns the style applied to the last vertex. |
| `SetStartLineEnding(s: LineEndingStyle)` | SetStartLineEnding sets the start-side (first vertex) line-ending style. |
| `SetEndLineEnding(s: LineEndingStyle)` | SetEndLineEnding sets the end-side (last vertex) line-ending style. |
| `RegenerateAppearance()` | RegenerateAppearance forces /AP/N to be rebuilt from current properties. |

## See Also

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