---
title: characterRange
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextlinefragment/characterrange
---

# characterRange

The string range for the source attributed string that corresponds to this line fragment.

## Declaration

```swift
var characterRange: NSRange { get }
```

## See Also

### Line fragment characteristics

- [attributedString](uikit/nstextlinefragment/attributedstring.md)
- [glyphOrigin](uikit/nstextlinefragment/glyphorigin.md)
- [typographicBounds](uikit/nstextlinefragment/typographicbounds.md)
