---
title: "draw(at:in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextlinefragment/draw(at:in:)"
---

# draw(at:in:)

Renders the line fragment contents at the rendering origin.

## Declaration

```swift
func draw(at point: CGPoint, in context: CGContext)
```

## Parameters

- `point`: The origin as a CGPoint.
- `context`: The drawing context.

## Discussion

Discussion You can specify the origin as (NSMinX(typographicBounds) + glyphOrigin.x, NSMinY(typographicBounds) + glyphOrigin.y) relative to the line fragment group coordinate system.
