---
title: "CTRunGetStringRange(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctrungetstringrange(_:)"
---

# CTRunGetStringRange(_:)

Gets the range of characters that originally spawned the glyphs in the run.

## Declaration

```swift
func CTRunGetStringRange(_ run: CTRun) -> CFRange
```

## Parameters

- `run`: The run for which to access the string range.

## Return Value

Return Value The range of characters that originally spawned the glyphs, of if run is invalid, an empty range.

## See Also

### Getting Glyph Run Data

- [CTRunGetGlyphCount(_:)](coretext/ctrungetglyphcount(_:).md)
- [CTRunGetAttributes(_:)](coretext/ctrungetattributes(_:).md)
- [CTRunGetStatus(_:)](coretext/ctrungetstatus(_:).md)
- [CTRunGetGlyphsPtr(_:)](coretext/ctrungetglyphsptr(_:).md)
- [CTRunGetGlyphs(_:_:_:)](coretext/ctrungetglyphs(_:_:_:).md)
- [CTRunGetPositionsPtr(_:)](coretext/ctrungetpositionsptr(_:).md)
- [CTRunGetPositions(_:_:_:)](coretext/ctrungetpositions(_:_:_:).md)
- [CTRunGetAdvancesPtr(_:)](coretext/ctrungetadvancesptr(_:).md)
- [CTRunGetAdvances(_:_:_:)](coretext/ctrungetadvances(_:_:_:).md)
- [CTRunGetStringIndicesPtr(_:)](coretext/ctrungetstringindicesptr(_:).md)
- [CTRunGetStringIndices(_:_:_:)](coretext/ctrungetstringindices(_:_:_:).md)
