# GetRowRect(int)

> Get the rect for a row.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.3/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor

```csharp
protected Rect GetRowRect(int row)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Row index.

### Returns

| Type                                                        | Description |
| ----------------------------------------------------------- | ----------- |
| [Rect](/engine/6000.3/script-reference/unityengine/rect.md) | Row rect.   |

### Remarks

This rect is limited to the visible width of the scroll view. If the TreeView is using a [MultiColumnHeader](/engine/6000.3/script-reference/unityeditor/imgui/controls/multicolumnheader.md) then the total width of all the columns can be found by MultiColumnHeaderState.widthOfAllVisibleColumns

Additional Resources: [TreeView\<TIdentifier>.GetRows()](/engine/6000.3/script-reference/unityeditor/imgui/controls/treeview1/getrows.md).
