<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextLayoutSectionKey",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSTextLayoutSectionKey"
  },
  "title" : "NSTextLayoutSectionKey"
}
-->

# NSTextLayoutSectionKey

Constants for the text layout sections document attribute key.

```
typedef NSString * NSTextLayoutSectionKey;
```

## Discussion

Use these constants as values for the [`NSTextLayoutSectionsAttribute`](/documentation/AppKit/NSTextLayoutSectionsAttribute) key in the document attributes dictionary.

## Topics

### Getting keys for text layouts

[`extern NSTextLayoutSectionKey NSTextLayoutSectionOrientation;`](/documentation/AppKit/NSTextLayoutSectionOrientation)

The orientation of the text.

[`extern NSTextLayoutSectionKey NSTextLayoutSectionRange;`](/documentation/AppKit/NSTextLayoutSectionRange)

The character range.



---

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)