---
title: "selectionManager(_:frameOfTextContainerAt:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextselectionmanager/delegate-swift.protocol/selectionmanager(_:frameoftextcontainerat:)"
---

# selectionManager(_:frameOfTextContainerAt:)

Returns the frame of the text container at the specified point.

## Declaration

```swift
optional func selectionManager(_ selectionManager: NSTextSelectionManager, frameOfTextContainerAt point: NSPoint) -> NSRect
```

## Parameters

- `selectionManager`: The selection manager requesting the frame.
- `point`: The point in the view’s coordinate system.

## Return Value

Return Value The frame of the text container at the point, in the text container’s coordinate system, or NSZeroRect if no container exists there.

## Discussion

Discussion Implement this method to support layouts with multiple text containers. For full multiple-text-container support, also implement selectionManager:locationOfTextContainerAtPoint:.
