---
title: caption
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfappearancecharacteristics/caption
---

# caption

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

## Declaration

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

## See Also

### Configuring a Widget’s Appearance

- [backgroundColor](pdfkit/pdfappearancecharacteristics/backgroundcolor.md)
- [borderColor](pdfkit/pdfappearancecharacteristics/bordercolor.md)
- [controlType](pdfkit/pdfappearancecharacteristics/controltype.md)
- [downCaption](pdfkit/pdfappearancecharacteristics/downcaption.md)
- [rolloverCaption](pdfkit/pdfappearancecharacteristics/rollovercaption.md)
- [rotation](pdfkit/pdfappearancecharacteristics/rotation.md)
- [appearanceCharacteristicsKeyValues](pdfkit/pdfappearancecharacteristics/appearancecharacteristicskeyvalues.md)
- [PDFAppearanceCharacteristicsKey](pdfkit/pdfappearancecharacteristicskey.md)
