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

# backgroundColor()

Returns the background color of the annotation text field.

## Declaration

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

## Return Value

Return Value The background color of the annotation’s text field.

## See Also

### Related Documentation

- [PDFAnnotationTextWidget](pdfkit/pdfannotationtextwidget.md)

### Managing Background Color, Alignment, and Rotation

- [setBackgroundColor(_:)](pdfkit/pdfannotationtextwidget/setbackgroundcolor(_:).md)
- [alignment()](pdfkit/pdfannotationtextwidget/alignment().md)
- [setAlignment(_:)](pdfkit/pdfannotationtextwidget/setalignment(_:).md)
- [rotation()](pdfkit/pdfannotationtextwidget/rotation().md)
- [setRotation(_:)](pdfkit/pdfannotationtextwidget/setrotation(_:).md)
