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

# backgroundColor

The color used to draw the background of the table.

## Declaration

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

## Discussion

Discussion The default background color is light gray.

## See Also

### Setting Display Attributes

- [intercellSpacing](appkit/nstableview/intercellspacing.md)
- [rowHeight](appkit/nstableview/rowheight.md)
- [usesAlternatingRowBackgroundColors](appkit/nstableview/usesalternatingrowbackgroundcolors.md)
- [style](appkit/nstableview/style-swift.property.md)
- [effectiveStyle](appkit/nstableview/effectivestyle.md)
- [NSTableView.Style](appkit/nstableview/style-swift.enum.md)
- [selectionHighlightStyle](appkit/nstableview/selectionhighlightstyle-swift.property.md)
- [gridColor](appkit/nstableview/gridcolor.md)
- [gridStyleMask](appkit/nstableview/gridstylemask.md)
- [indicatorImage(in:)](appkit/nstableview/indicatorimage(in:).md)
- [setIndicatorImage(_:in:)](appkit/nstableview/setindicatorimage(_:in:).md)
