---
title: borderColor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbox/bordercolor
---

# borderColor

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

## Declaration

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

## Discussion

Discussion The receiver’s border 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

- [borderWidth](appkit/nsbox/borderwidth.md)
- [cornerRadius](appkit/nsbox/cornerradius.md)
- [fillColor](appkit/nsbox/fillcolor.md)
