---
title: textFirstRect
framework: browserenginekit
role: symbol
role_heading: Instance Property
path: browserenginekit/betextinput/textfirstrect
---

# textFirstRect

Returns a rect representing the bounds of the first line of marked text, if marked text is set.

## Declaration

```swift
var textFirstRect: CGRect { get }
```

## Discussion

Discussion Otherwise, this returns a rect representing the bounds of the last word at or before the insertion point.
