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

# setBackgroundColor(_:)

Sets the control’s background color.

## Declaration

```swift
func setBackgroundColor(_ color: NSColor!)
```

## Parameters

- `color`: The color to be drawn in the control’s background.

## See Also

### Getting and Setting the Control’s Appearance

- [backgroundColor()](pdfkit/pdfannotationbuttonwidget/backgroundcolor().md)
