<!--
{
  "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/NSTextLayoutSectionsAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@NSTextLayoutSectionsAttribute"
  },
  "title" : "NSTextLayoutSectionsAttribute"
}
-->

# NSTextLayoutSectionsAttribute

The layout orientations for each section.

```
extern NSAttributedStringDocumentAttributeKey const NSTextLayoutSectionsAttribute;
```

## Discussion

An [NSArray](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/PropertyLists/OldStylePlists/OldStylePLists.html#//apple_ref/doc/uid/20001012-47205) containing <doc://com.apple.documentation/documentation/Foundation/NSDictionary> objects, each dictionary describing a layout orientation section. The dictionary can have two attributes: [`NSTextLayoutSectionOrientation`](/documentation/UIKit/NSTextLayoutSectionOrientation) and [`NSTextLayoutSectionRange`](/documentation/UIKit/NSTextLayoutSectionRange). When there is a gap between sections, it’s assumed to have [`NSLayoutManager.TextLayoutOrientation.horizontal`](/documentation/UIKit/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)