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

# backgroundColor

The background color of the button.

## Declaration

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

## Discussion

Discussion The background color is used only when drawing borderless buttons.

## See Also

### Managing Graphics Attributes

- [bezelStyle](appkit/nsbuttoncell/bezelstyle.md)
- [gradientType](appkit/nsbuttoncell/gradienttype.md)
- [imageDimsWhenDisabled](appkit/nsbuttoncell/imagedimswhendisabled.md)
- [isOpaque](appkit/nsbuttoncell/isopaque.md)
- [isTransparent](appkit/nsbuttoncell/istransparent.md)
- [showsBorderOnlyWhileMouseInside](appkit/nsbuttoncell/showsborderonlywhilemouseinside.md)
