---
title: "setBorderColor(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextblock/setbordercolor(_:)"
---

# setBorderColor(_:)

Sets the color of all borders of the text block.

## Declaration

```swift
func setBorderColor(_ color: NSColor?)
```

## Parameters

- `color`: The new color.

## Discussion

Discussion This setting has no visible effect unless the border width is larger than the default, which is 0.

## See Also

### Related Documentation

- [setWidth(_:type:for:)](appkit/nstextblock/setwidth(_:type:for:).md)

### Working with color

- [backgroundColor](appkit/nstextblock/backgroundcolor.md)
- [setBorderColor(_:for:)](appkit/nstextblock/setbordercolor(_:for:).md)
