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

# backgroundColor

The background color of the row.

## Declaration

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

## Discussion

Discussion The property defaults to the table view’s backgroundColor, unless usesAlternatingRowBackgroundColors is set to true. In that case, the colors alternate, and are automatically updated as required by insertions and deletions. The value of the background color can be customized in the NSTableViewDelegate method tableView:didAddRowView:forRow:. The property is animatable.

## See Also

### Overriding Row View Display Characteristics

- [drawBackground(in:)](appkit/nstablerowview/drawbackground(in:).md)
- [drawDraggingDestinationFeedback(in:)](appkit/nstablerowview/drawdraggingdestinationfeedback(in:).md)
- [drawSelection(in:)](appkit/nstablerowview/drawselection(in:).md)
- [drawSeparator(in:)](appkit/nstablerowview/drawseparator(in:).md)
