---
title: "CTLineDraw(_:_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctlinedraw(_:_:)"
---

# CTLineDraw(_:_:)

Draws a complete line.

## Declaration

```swift
func CTLineDraw(_ line: CTLine, _ context: CGContext)
```

## Parameters

- `line`: The line to draw.
- `context`: The context into which the line is drawn.

## Discussion

Discussion This is a convenience function because the line could be drawn run-by-run by getting the glyph runs, getting the glyphs out of them, and calling a function such as CGContextShowGlyphsAtPositions. This call can leave the graphics context in any state and does not flush the context after the draw operation.
