---
title: border
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfannotation/border
---

# border

Sets the border style for the annotation.

## Declaration

```swift
var border: PDFBorder? { get set }
```

## Parameters

- `border`: The border style for the annotation. See Constants in the doc://com.apple.pdfkit/documentation/PDFKit/PDFBorder class for the available styles. The border style attribute is optional.

## See Also

### Managing Annotation Display Characteristics

- [alignment](pdfkit/pdfannotation/alignment.md)
- [bounds](pdfkit/pdfannotation/bounds.md)
- [contents](pdfkit/pdfannotation/contents.md)
- [font](pdfkit/pdfannotation/font.md)
- [fontColor](pdfkit/pdfannotation/fontcolor.md)
- [PDFBorder](pdfkit/pdfborder.md)
- [isHighlighted](pdfkit/pdfannotation/ishighlighted.md)
- [color](pdfkit/pdfannotation/color.md)
- [hasAppearanceStream](pdfkit/pdfannotation/hasappearancestream.md)
