---
title: "layoutParagraph(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsatstypesetter/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: UnsafeMutablePointer<NSPoint>) -> Int
```

## Discussion

Discussion The lineFragmentOrigin specifies the upper-left corner of line fragment rectangle. On return, lineFragmentOrigin contains the next origin. This method returns the next glyph index. Usually it’s 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.
