---
title: "endLine(withGlyphRange:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstypesetter/endline(withglyphrange:)"
---

# endLine(withGlyphRange:)

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

## Declaration

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

## Parameters

- `lineGlyphRange`: The range of glyphs laid out in the line.

## Discussion

Discussion Concrete subclass implementations of layoutParagraph(at:) should invoke this method at the end of each line.

## See Also

### Laying out a paragraph

- [layoutParagraph(at:)](appkit/nstypesetter/layoutparagraph(at:).md)
- [beginParagraph()](appkit/nstypesetter/beginparagraph().md)
- [endParagraph()](appkit/nstypesetter/endparagraph().md)
- [beginLine(withGlyphAt:)](appkit/nstypesetter/beginline(withglyphat:).md)
