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

# controlType()

Returns the type of the control.

## Declaration

```swift
func controlType() -> PDFWidgetControlType
```

## Return Value

Return Value The type of control the button represents.

## See Also

### Related Documentation

- [PDFAnnotationButtonWidget](pdfkit/pdfannotationbuttonwidget.md)
- [PDFWidgetControlType](pdfkit/pdfwidgetcontroltype.md)

### Getting and Setting the Control Type

- [setControlType(_:)](pdfkit/pdfannotationbuttonwidget/setcontroltype(_:).md)
