---
title: boundingBox()
framework: webkit
role: symbol
role_heading: Instance Method
path: webkit/domnode/boundingbox()
---

# boundingBox()

Returns a rectangle that bounds the onscreen rendering of the node.

## Declaration

```swift
func boundingBox() -> NSRect
```

## Return Value

Return Value The rectangle that represents the bounding box of the onscreen rendering of the node.

## See Also

### Obtaining layout rectangles

- [lineBoxRects()](webkit/domnode/lineboxrects().md)
