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

# alignment

The alignment of the free text and text widget annotation’s text content.

## Declaration

```swift
var alignment: NSTextAlignment { get set }
```

## See Also

### Managing Annotation Display Characteristics

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