---
title: NSTextBlock.ValueType
framework: appkit
role: symbol
role_heading: Enumeration
path: appkit/nstextblock/valuetype
---

# NSTextBlock.ValueType

The following constants specify values used by the methods setValue(_:type:for:) and valueType(for:) to specify text block value types.

## Declaration

```swift
enum ValueType
```

## Topics

### Constants

- [absoluteValueType](appkit/nstextblock/valuetype/absolutevaluetype.md)
- [percentageValueType](appkit/nstextblock/valuetype/percentagevaluetype.md)

### Enumeration Cases

- [NSTextBlock.ValueType.absolute](appkit/nstextblock/valuetype/absolute.md)
- [NSTextBlock.ValueType.percentage](appkit/nstextblock/valuetype/percentage.md)

### Initializers

- [init(rawValue:)](appkit/nstextblock/valuetype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## 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)
- [contentWidth](appkit/nstextblock/contentwidth.md)
- [contentWidthValueType](appkit/nstextblock/contentwidthvaluetype.md)
- [NSTextBlock.Dimension](appkit/nstextblock/dimension.md)
