---
title: lineBoxRects()
framework: webkit
role: symbol
role_heading: Instance Method
path: webkit/domnode/lineboxrects()
---

# lineBoxRects()

Returns the rectangles that bound each line of text in the node.

## Declaration

```swift
func lineBoxRects() -> [Any]!
```

## Return Value

Return Value An array of rectangles, in which each rectangle represents the bounding box of a line of text in the node.

## See Also

### Obtaining layout rectangles

- [boundingBox()](webkit/domnode/boundingbox().md)
