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

# caption

The title of push button widget annotations.

## Declaration

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

## See Also

### Configuring Button Widget Annotations

- [widgetControlType](pdfkit/pdfannotation/widgetcontroltype.md)
- [buttonWidgetState](pdfkit/pdfannotation/buttonwidgetstate.md)
- [PDFWidgetCellState](pdfkit/pdfwidgetcellstate.md)
- [buttonWidgetStateString](pdfkit/pdfannotation/buttonwidgetstatestring.md)
- [allowsToggleToOff](pdfkit/pdfannotation/allowstoggletooff.md)
- [radiosInUnison](pdfkit/pdfannotation/radiosinunison.md)
