---
title: caption()
framework: pdfkit
role: symbol
role_heading: Instance Method
path: pdfkit/pdfannotationbuttonwidget/caption()
---

# caption()

Returns the text of the label on a push button control.

## Declaration

```swift
func caption() -> String!
```

## Return Value

Return Value The label drawn on a push button control.

## Discussion

Discussion This method applies only to the label drawn on a control of type PDFAnnotationButtonWidget.

## See Also

### Related Documentation

- [PDFAnnotationButtonWidget](pdfkit/pdfannotationbuttonwidget.md)

### Getting and Setting the Control Label Text

- [setCaption(_:)](pdfkit/pdfannotationbuttonwidget/setcaption(_:).md)
