---
title: CTFrame
framework: coretext
role: symbol
role_heading: Class
path: coretext/ctframe
---

# CTFrame

A frame.

## Declaration

```swift
class CTFrame
```

## Overview

Overview A frame contains multiple lines of text. The frame object is the output resulting from the text-framing process performed by a CTFramesetter object. You can draw the entire text frame directly into the current graphic context. The frame object contains an array of line objects that can be retrieved for individual rendering or to get glyph information.

## Topics

### Getting Frame Data

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

### Getting Lines

- [CTFrameGetLines(_:)](coretext/ctframegetlines(_:).md)
- [CTFrameGetLineOrigins(_:_:_:)](coretext/ctframegetlineorigins(_:_:_:).md)

### Drawing the Frame

- [CTFrameDraw(_:_:)](coretext/ctframedraw(_:_:).md)

### Getting the Type Identifier

- [CTFrameGetTypeID()](coretext/ctframegettypeid().md)

### Data Types

- [CTFramePathFillRule](coretext/ctframepathfillrule.md)

### Constants

- [CTFrameProgression](coretext/ctframeprogression.md)
- [kCTFrameProgressionAttributeName](coretext/kctframeprogressionattributename.md)
- [kCTFramePathFillRuleAttributeName](coretext/kctframepathfillruleattributename.md)
- [kCTFramePathWidthAttributeName](coretext/kctframepathwidthattributename.md)
- [kCTFrameClippingPathsAttributeName](coretext/kctframeclippingpathsattributename.md)
- [kCTFramePathClippingPathAttributeName](coretext/kctframepathclippingpathattributename.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### Opaque Types

- [CTFont](coretext/ctfont.md)
- [CTFontCollection](coretext/ctfontcollection.md)
- [CTFontDescriptor](coretext/ctfontdescriptor.md)
- [CTFramesetter](coretext/ctframesetter.md)
- [CTGlyphInfo](coretext/ctglyphinfo.md)
- [CTLine](coretext/ctline.md)
- [CTParagraphStyle](coretext/ctparagraphstyle.md)
- [CTRun](coretext/ctrun.md)
- [CTRunDelegate](coretext/ctrundelegate.md)
- [CTTextTab](coretext/cttexttab.md)
- [CTTypesetter](coretext/cttypesetter.md)
