<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTypesetter/endLine(withGlyphRange:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTypesetter(im)endLineWithGlyphRange:"
  },
  "title" : "endLine(withGlyphRange:)"
}
-->

# endLine(withGlyphRange:)

Sets up layout parameters at the end of a line during typesetting.

```
func endLine(withGlyphRange lineGlyphRange: NSRange)
```

## Parameters

`lineGlyphRange`

The range of glyphs laid out in the line.

## Discussion

Concrete subclass implementations of [`layoutParagraph(at:)`](/documentation/AppKit/NSTypesetter/layoutParagraph(at:)) should invoke this method at the end of each line.

---

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)