---
title: "CTFrameGetStringRange(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctframegetstringrange(_:)"
---

# CTFrameGetStringRange(_:)

Returns the range of characters originally requested to fill the frame.

## Declaration

```swift
func CTFrameGetStringRange(_ frame: CTFrame) -> CFRange
```

## Parameters

- `frame`: The frame whose character range is returned.

## Return Value

Return Value A CFRange structure containing the backing store range of characters that were originally requested to fill the frame, or, if the function call is not successful, an empty range.

## See Also

### Getting Frame Data

- [CTFrameGetVisibleStringRange(_:)](coretext/ctframegetvisiblestringrange(_:).md)
- [CTFrameGetPath(_:)](coretext/ctframegetpath(_:).md)
- [CTFrameGetFrameAttributes(_:)](coretext/ctframegetframeattributes(_:).md)
