---
title: usesAlternatingRowBackgroundColors
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstableview/usesalternatingrowbackgroundcolors
---

# usesAlternatingRowBackgroundColors

A Boolean value indicating whether the table view uses alternating row colors for its background.

## Declaration

```swift
var usesAlternatingRowBackgroundColors: Bool { get set }
```

## Return Value

Return Value true if the table view uses standard alternating row colors for the background, false if it uses a solid color.

## Discussion

Discussion When the value of this property is true, the table uses the standard alternating row colors for the background. When the value is false, the table view uses a single solid color for the background.

## See Also

### Setting Display Attributes

- [intercellSpacing](appkit/nstableview/intercellspacing.md)
- [rowHeight](appkit/nstableview/rowheight.md)
- [backgroundColor](appkit/nstableview/backgroundcolor.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)
