---
title: "textLayoutOrientation(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextselectiondatasource/textlayoutorientation(at:)"
---

# textLayoutOrientation(at:)

Returns the layout orientation at the location you specify.

## Declaration

```swift
optional func textLayoutOrientation(at location: any NSTextLocation) -> NSTextSelectionNavigation.LayoutOrientation
```

## Parameters

- `location`: The location where you want to examine the text’s layout orientation.

## Return Value

Return Value Returns an NSTextSelectionNavigation.LayoutOrientation that describes the orientation of the layout.

## See Also

### Changing the characteristics of the selection

- [baseWritingDirection(at:)](appkit/nstextselectiondatasource/basewritingdirection(at:).md)
- [NSTextSelectionNavigation.WritingDirection](appkit/nstextselectionnavigation/writingdirection.md)
- [NSTextSelectionNavigation.LayoutOrientation](appkit/nstextselectionnavigation/layoutorientation.md)
