---
title: orientation
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/textlayoutsectionkey/orientation
---

# orientation

The orientation of the text.

## Declaration

```swift
static let orientation: NSAttributedString.TextLayoutSectionKey
```

## Discussion

Discussion An NSNumber object containing an NSLayoutManager.TextLayoutOrientation value. The default value is NSLayoutManager.TextLayoutOrientation.horizontal.

## See Also

### Getting keys for text layouts

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