---
title: "beginLine(withGlyphAt:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstypesetter/beginline(withglyphat:)"
---

# beginLine(withGlyphAt:)

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

## Declaration

```swift
func beginLine(withGlyphAt glyphIndex: Int)
```

## Parameters

- `glyphIndex`: The index of the first glyph to be laid out in the line.

## Discussion

Discussion Concrete subclass implementations of layoutParagraph(at:) should invoke this method at the beginning 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)
- [endLine(withGlyphRange:)](appkit/nstypesetter/endline(withglyphrange:).md)
