---
title: "setControlType(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfannotationbuttonwidget/setcontroltype(_:)"
---

# setControlType(_:)

Sets the type of the control.

## Declaration

```swift
func setControlType(_ type: PDFWidgetControlType)
```

## Parameters

- `type`: The type of control for the button.

## See Also

### Related Documentation

- [PDFWidgetControlType](pdfkit/pdfwidgetcontroltype.md)

### Getting and Setting the Control Type

- [controlType()](pdfkit/pdfannotationbuttonwidget/controltype().md)
