---
title: caption
framework: pdfkit
role: symbol
role_heading: Type Property
path: pdfkit/pdfappearancecharacteristicskey/caption
---

# caption

The text that the button widget annotation displays when the user isn’t interacting with it.

## Declaration

```swift
static let caption: PDFAppearanceCharacteristicsKey
```

## See Also

### Modifying Widget Appearance

- [backgroundColor](pdfkit/pdfappearancecharacteristicskey/backgroundcolor.md)
- [borderColor](pdfkit/pdfappearancecharacteristicskey/bordercolor.md)
- [downCaption](pdfkit/pdfappearancecharacteristicskey/downcaption.md)
- [rolloverCaption](pdfkit/pdfappearancecharacteristicskey/rollovercaption.md)
- [rotation](pdfkit/pdfappearancecharacteristicskey/rotation.md)
