<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextLayoutFragment/draw(at:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextLayoutFragment(im)drawAtPoint:inContext:"
  },
  "title" : "draw(at:in:)"
}
-->

# draw(at:in:)

Renders the visual representation of this element in the specified graphics context.

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

## Parameters

`point`

The origin as a <doc://com.apple.documentation/documentation/CoreFoundation/CGPoint>.

`context`

The rendering context.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)