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

# contents

Returns the textual content (if any) associated with the annotation.

## Declaration

```swift
var contents: String? { get set }
```

## Return Value

Return Value A string representing the textual content associated with the annotation.

## Discussion

Discussion Textual content is typically associated with PDFAnnotationText and PDFAnnotationFreeText annotations.

## See Also

### Related Documentation

- [toolTip](pdfkit/pdfannotation/tooltip.md)

### Managing Annotation Display Characteristics

- [alignment](pdfkit/pdfannotation/alignment.md)
- [bounds](pdfkit/pdfannotation/bounds.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)
