---
title: borderType
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbox/bordertype
---

# borderType

The receiver’s border type.

## Declaration

```swift
var borderType: NSBorderType { get set }
```

## Discussion

Discussion A constant describing the type of border. Border types are defined in NSView.h. Currently, the following border types are defined: NSNoBorder,NSLineBorder,NSBezelBorder, NSGrooveBorder. By default, the border type of an NSBox is NSGrooveBorder. If the size of the new border is different from that of the old border, the content view is resized to absorb the difference, and the box is marked for redisplay.

## See Also

### Configuring Boxes

- [borderRect](appkit/nsbox/borderrect.md)
- [boxType](appkit/nsbox/boxtype-swift.property.md)
- [isTransparent](appkit/nsbox/istransparent.md)
- [title](appkit/nsbox/title.md)
- [titleFont](appkit/nsbox/titlefont.md)
- [titlePosition](appkit/nsbox/titleposition-swift.property.md)
- [titleCell](appkit/nsbox/titlecell.md)
- [titleRect](appkit/nsbox/titlerect.md)
