---
title: "layoutParagraph(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstypesetter/layoutparagraph(at:)"
---

# layoutParagraph(at:)

Lays out glyphs in the current glyph range until the next paragraph separator is reached.

## Declaration

```swift
func layoutParagraph(at lineFragmentOrigin: NSPointPointer) -> Int
```

## Parameters

- `lineFragmentOrigin`: The upper-left corner of line fragment rectangle. On return, lineFragmentOrigin contains the next origin.

## Return Value

Return Value The next glyph index; usually the index right after the paragraph separator, but it can be inside the paragraph range if, for example, the end of the text container is reached before the paragraph separator.

## Discussion

Discussion Concrete subclasses must implement this method. A concrete implementation must invoke beginParagraph(), beginLine(withGlyphAt:), endLine(withGlyphRange:), and endParagraph().

## See Also

### Laying out a paragraph

- [beginParagraph()](appkit/nstypesetter/beginparagraph().md)
- [endParagraph()](appkit/nstypesetter/endparagraph().md)
- [beginLine(withGlyphAt:)](appkit/nstypesetter/beginline(withglyphat:).md)
- [endLine(withGlyphRange:)](appkit/nstypesetter/endline(withglyphrange:).md)
