---
title: CFRange
framework: corefoundation
role: symbol
role_heading: Structure
path: corefoundation/cfrange
---

# CFRange

A structure representing a range of sequential items in a container, such as characters in a buffer or elements in a collection.

## Declaration

```swift
struct CFRange
```

## Topics

### Initializers

- [init()](corefoundation/cfrange/init().md)
- [init(location:length:)](corefoundation/cfrange/init(location:length:).md)

### Instance Properties

- [length](corefoundation/cfrange/length.md)
- [location](corefoundation/cfrange/location.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Sendable](swift/sendable.md)

## See Also

### Data Types

- [CFIndex](corefoundation/cfindex.md)
- [CFOptionFlags](corefoundation/cfoptionflags.md)
