<!--
{
  "availability" : [
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScrubber/selectionBackgroundStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScrubber(py)selectionBackgroundStyle"
  },
  "title" : "selectionBackgroundStyle"
}
-->

# selectionBackgroundStyle

The style applied to the background of selected items.

```
var selectionBackgroundStyle: NSScrubberSelectionStyle? { get set }
```

## Discussion

The default value is `nil`, which specifies no background decoration.

You can either choose from one of the built-in selection styles ([`outlineOverlay`](/documentation/AppKit/NSScrubberSelectionStyle/outlineOverlay) or [`roundedBackground`](/documentation/AppKit/NSScrubberSelectionStyle/roundedBackground)), or you can subclass [`NSScrubberSelectionStyle`](/documentation/AppKit/NSScrubberSelectionStyle) to create your own custom selection style.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)