# GetCellRect(int, Rect)

> Calculates a cell rect for a column and row using the visibleColumnIndex and rowRect parameters.

## Definition

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

```csharp
public Rect GetCellRect(int visibleColumnIndex, Rect rowRect)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)):&#x20;

### Returns

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

### Remarks

Note that columns can be hidden so to get the visible column index from a column index use the method: [MultiColumnHeader.GetVisibleColumnIndex](/engine/6000.7/script-reference/unityeditor/imgui/controls/multicolumnheader/getvisiblecolumnindex.md).
