<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextBlock/ValueType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSTextBlockValueType"
  },
  "title" : "NSTextBlock.ValueType"
}
-->

# NSTextBlock.ValueType

The following constants specify values used by the methods [`setValue(_:type:for:)`](/documentation/AppKit/NSTextBlock/setValue(_:type:for:)) and [`valueType(for:)`](/documentation/AppKit/NSTextBlock/valueType(for:)) to specify text block value types.

```
enum ValueType
```

## Topics

### Constants

[`static var absoluteValueType: NSTextBlock.ValueType`](/documentation/AppKit/NSTextBlock/ValueType/absoluteValueType)

Absolute value in points.

[`static var percentageValueType: NSTextBlock.ValueType`](/documentation/AppKit/NSTextBlock/ValueType/percentageValueType)

Percentage value (out of 100).

### Enumeration Cases

[`case absolute`](/documentation/AppKit/NSTextBlock/ValueType/absolute)

[`case percentage`](/documentation/AppKit/NSTextBlock/ValueType/percentage)

### Initializers

[`init?(rawValue: Int)`](/documentation/AppKit/NSTextBlock/ValueType/init(rawValue:))

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)