---
title: boxType
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbox/boxtype-swift.property
---

# boxType

The receiver’s box type.

## Declaration

```swift
var boxType: NSBox.BoxType { get set }
```

## Discussion

Discussion A constant describing the type of box. These constants are described in NSBox.BoxType. By default, the box type of an NSBox is NSBoxPrimary.

## See Also

### Configuring Boxes

- [borderRect](appkit/nsbox/borderrect.md)
- [borderType](appkit/nsbox/bordertype.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)
