---
title: contentWidth
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextblock/contentwidth
---

# contentWidth

The width of the text block.

## Declaration

```swift
var contentWidth: CGFloat { get }
```

## Discussion

Discussion This property interpreted according to the value type returned by contentWidthValueType.

## See Also

### Working with dimensions of content

- [setValue(_:type:for:)](appkit/nstextblock/setvalue(_:type:for:).md)
- [value(for:)](appkit/nstextblock/value(for:).md)
- [valueType(for:)](appkit/nstextblock/valuetype(for:).md)
- [setContentWidth(_:type:)](appkit/nstextblock/setcontentwidth(_:type:).md)
- [contentWidthValueType](appkit/nstextblock/contentwidthvaluetype.md)
- [NSTextBlock.Dimension](appkit/nstextblock/dimension.md)
- [NSTextBlock.ValueType](appkit/nstextblock/valuetype.md)
