---
title: NSAttributedString.TextLayoutSectionKey
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsattributedstring/textlayoutsectionkey
---

# NSAttributedString.TextLayoutSectionKey

Constants for the text layout sections document attribute key.

## Declaration

```swift
struct TextLayoutSectionKey
```

## Overview

Overview Use these constants as values for the textLayoutSections key in the document attributes dictionary.

## Topics

### Getting keys for text layouts

- [orientation](foundation/nsattributedstring/textlayoutsectionkey/orientation.md)
- [range](foundation/nsattributedstring/textlayoutsectionkey/range.md)

### Initializers

- [init(rawValue:)](foundation/nsattributedstring/textlayoutsectionkey/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting document-wide attributes

- [NSAttributedString.DocumentAttributeKey](foundation/nsattributedstring/documentattributekey.md)
- [NSAttributedString.DocumentReadingOptionKey](foundation/nsattributedstring/documentreadingoptionkey.md)
- [HTML attributes](foundation/html-attributes.md)
- [NSAttributedString.DocumentType](foundation/nsattributedstring/documenttype.md)
- [NSTextScalingType](uikit/nstextscalingtype.md)
