---
title: "textLayoutOrientation(at:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/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:)](uikit/nstextselectiondatasource/basewritingdirection(at:).md)
- [NSTextSelectionNavigation.WritingDirection](uikit/nstextselectionnavigation/writingdirection.md)
- [NSTextSelectionNavigation.LayoutOrientation](uikit/nstextselectionnavigation/layoutorientation.md)
