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

# setBackgroundColor(_:)

Sets the background color of the widget annotation.

## Declaration

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

## Parameters

- `color`: The color to use in the background of the widget annotation.

## See Also

### Managing Font and Background Color Characteristics

- [backgroundColor()](pdfkit/pdfannotationchoicewidget/backgroundcolor().md)
- [font()](pdfkit/pdfannotationchoicewidget/font().md)
- [setFont(_:)](pdfkit/pdfannotationchoicewidget/setfont(_:).md)
- [fontColor()](pdfkit/pdfannotationchoicewidget/fontcolor().md)
- [setFontColor(_:)](pdfkit/pdfannotationchoicewidget/setfontcolor(_:).md)
