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

# NSTextBlock.Dimension

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

```
enum Dimension
```

## Topics

### Constants

[`case width`](/documentation/AppKit/NSTextBlock/Dimension/width)

Width of the text block.

[`case minimumWidth`](/documentation/AppKit/NSTextBlock/Dimension/minimumWidth)

Minimum width of the text block.

[`case maximumWidth`](/documentation/AppKit/NSTextBlock/Dimension/maximumWidth)

Maximum width of the text block.

[`case height`](/documentation/AppKit/NSTextBlock/Dimension/height)

Height of the text block.

[`case minimumHeight`](/documentation/AppKit/NSTextBlock/Dimension/minimumHeight)

Minimum height of the text block.

[`case maximumHeight`](/documentation/AppKit/NSTextBlock/Dimension/maximumHeight)

Maximum height of the text block.

### Initializers

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

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)