# GetRenameRect(Rect, int, TreeViewItem)

> Override this method if custom GUI handling are used in TreeView.RowGUI. This method for controls where the rename overlay appears.

## Definition

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

> **Warning:**
>
> **Removed.** TreeView is now deprecated. You can likely now use TreeView\\\<int\\> instead and not think more about it. But if you were using that identifier to store InstanceID data, you should instead opt to upgrade your TreeViews to use TreeView\\\<InstanceID\\> to get the proper typing.

```csharp
protected virtual Rect GetRenameRect(Rect rowRect, int row, TreeViewItem item)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Row rect for the item currently being renamed.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Row index for the item currently being renamed.**** (\[TreeViewItem]\(/engine/6000.5/script-reference/unityeditor/imgui/controls/treeviewitem)): TreeViewItem that are currently being renamed.

### Returns

| Type                                                        | Description                                      |
| ----------------------------------------------------------- | ------------------------------------------------ |
| [Rect](/engine/6000.5/script-reference/unityengine/rect.md) | The rect where the rename overlay should appear. |

### Remarks

By default the rename overlay matches the placement of the item's displayName text being rendered.
