---
title: characterRange
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/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](appkit/nstextlinefragment/attributedstring.md)
- [glyphOrigin](appkit/nstextlinefragment/glyphorigin.md)
- [typographicBounds](appkit/nstextlinefragment/typographicbounds.md)
