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

# backgroundStyle

The cell’s background style.

## Declaration

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

## Discussion

Discussion The background describes the surface the cell is drawn onto in the draw(withFrame:in:) method. A control typically sets the value of this property before it asks the cell to draw. A cell may draw differently based on background characteristics. For example, a table view drawing a cell in a selected row might set the value to dark. A text cell might decide to render its text white as a result. A rating-style level indicator might draw its stars white instead of gray.

## See Also

### Managing Display Attributes

- [isBezeled](appkit/nscell/isbezeled.md)
- [isBordered](appkit/nscell/isbordered.md)
- [isOpaque](appkit/nscell/isopaque.md)
- [controlTint](appkit/nscell/controltint.md)
- [interiorBackgroundStyle](appkit/nscell/interiorbackgroundstyle.md)
- [NSView.BackgroundStyle](appkit/nsview/backgroundstyle.md)
