---
title: titleWidth
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsformcell/titlewidth
---

# titleWidth

The width of the title field.

## Declaration

```swift
var titleWidth: CGFloat { get set }
```

## Discussion

Discussion The width of the title field, measured in points in the user coordinate space. You usually do not need to set this property. AppKit automatically sets the title width whenever the title changes. If the automatic width doesn’t suit your needs, though, you can use this property to set the width explicitly. After you have set the width this way, AppKit stops setting the width automatically, so you must set this property every time the title changes. If you want AppKit to resume automatic width assignments, set this property to a negative value.

## See Also

### Accessing a Cell’s Title

- [attributedTitle](appkit/nsformcell/attributedtitle.md)
- [title](appkit/nsformcell/title.md)
- [titleAlignment](appkit/nsformcell/titlealignment.md)
- [titleBaseWritingDirection](appkit/nsformcell/titlebasewritingdirection.md)
- [titleFont](appkit/nsformcell/titlefont.md)
