---
title: backgroundColor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextview/backgroundcolor
---

# backgroundColor

The receiver’s background color.

## Declaration

```swift
@NSCopying var backgroundColor: NSColor { get set }
```

## See Also

### Setting graphics attributes

- [drawsBackground](appkit/nstextview/drawsbackground.md)
- [allowsDocumentBackgroundColorChange](appkit/nstextview/allowsdocumentbackgroundcolorchange.md)
- [changeDocumentBackgroundColor(_:)](appkit/nstextview/changedocumentbackgroundcolor(_:).md)
