---
title: fillColor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbox/fillcolor
---

# fillColor

The color of the receiver’s background when the receiver is a custom box with a simple line border.

## Declaration

```swift
@NSCopying var fillColor: NSColor { get set }
```

## Discussion

Discussion The receiver’s fill color. It must be a custom box—that is, it has a type of NSBox.BoxType.custom—and it must have a border style of NSBorderType.lineBorder. Special Considerations Functional only when the receiver’s box type (boxType) is NSBoxCustom and its border type (borderType) is NSLineBorder.

## See Also

### Customizing

- [borderColor](appkit/nsbox/bordercolor.md)
- [borderWidth](appkit/nsbox/borderwidth.md)
- [cornerRadius](appkit/nsbox/cornerradius.md)
