<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSTextLayoutSectionKey",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "UIKit"
    ],
    "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/UIKit/NSTextLayoutSectionsAttribute) key in the document attributes dictionary.

## Topics

### Getting keys for text layouts

[`extern NSTextLayoutSectionKey const NSTextLayoutSectionOrientation;`](/documentation/UIKit/NSTextLayoutSectionOrientation)

The orientation of the text.

[`extern NSTextLayoutSectionKey const NSTextLayoutSectionRange;`](/documentation/UIKit/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)