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

# backgroundColor

The background color of the matrix (the space between the cells).

## Declaration

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

## Discussion

Discussion The value of this property is the background color used to fill the space between cells or the space behind any non-opaque cells. The default background color is the color returned by the NSColor method controlColor.

## See Also

### Modifying Graphics Attributes

- [cellBackgroundColor](appkit/nsmatrix/cellbackgroundcolor.md)
- [drawsBackground](appkit/nsmatrix/drawsbackground.md)
- [drawsCellBackground](appkit/nsmatrix/drawscellbackground.md)
