---
title: backgroundStyle
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstablecellview/backgroundstyle
---

# backgroundStyle

This property is automatically set by the enclosing row view to let this view know what its background looks like.

## Declaration

```swift
var backgroundStyle: NSView.BackgroundStyle { get set }
```

## Discussion

Discussion The property is automatically set by the enclosing NSTableRowView to let this view know what its background looks like. For instance, when the backgroundStyle is NSBackgroundStyleDark, the view should use a light text color. The default implementation automatically forwards calls to all subviews that implement setBackgroundStyle: or are an NSControl, which have NSCell classes that respond to backgroundStyle.
