---
title: "valueType(for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextblock/valuetype(for:)"
---

# valueType(for:)

Returns the value type of the specified text block dimension.

## Declaration

```swift
func valueType(for dimension: NSTextBlock.Dimension) -> NSTextBlock.ValueType
```

## Return Value

Return Value The value type for the specified text block dimension. This result determines how the value for the dimension should be interpreted.

## See Also

### Working with dimensions of content

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