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

# NSTextLayoutSectionsAttribute

The layout orientations for each section.

```
extern NSAttributedStringDocumentAttributeKey NSTextLayoutSectionsAttribute;
```

## Discussion

An <doc://com.apple.documentation/documentation/Foundation/NSArray> containing <doc://com.apple.documentation/documentation/Foundation/NSDictionary> objects, each dictionary describing a layout orientation section. The dictionary can have two attributes: [`NSTextLayoutSectionOrientation`](/documentation/AppKit/NSTextLayoutSectionOrientation) and [`NSTextLayoutSectionRange`](/documentation/AppKit/NSTextLayoutSectionRange). When there is a gap between sections, it’s assumed to have [`NSLayoutManager.TextLayoutOrientation.horizontal`](/documentation/AppKit/NSLayoutManager/TextLayoutOrientation/horizontal).

---

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)