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

# backgroundColor()

Returns the background color of the control.

## Declaration

```swift
func backgroundColor() -> NSColor!
```

## Return Value

Return Value The color drawn in the background of the control.

## See Also

### Getting and Setting the Control’s Appearance

- [setBackgroundColor(_:)](pdfkit/pdfannotationbuttonwidget/setbackgroundcolor(_:).md)
