---
title: cellBackgroundColor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsmatrix/cellbackgroundcolor
---

# cellBackgroundColor

The background color of the matrix’s cells.

## Declaration

```swift
@NSCopying var cellBackgroundColor: NSColor? { get set }
```

## Discussion

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

## See Also

### Modifying Graphics Attributes

- [backgroundColor](appkit/nsmatrix/backgroundcolor.md)
- [drawsBackground](appkit/nsmatrix/drawsbackground.md)
- [drawsCellBackground](appkit/nsmatrix/drawscellbackground.md)
