# GetColumn(int)

> If using a MultiColumnHeader for the TreeView this method can be used to convert an index from the visible columns list to a index into the actual columns in the MultiColumnHeaderState.

## Definition

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

```csharp
public int GetColumn(int visibleColumnIndex)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): This index is the index into the current visible columns.

### Returns

| Type                                                       | Description                                                                                                                                            |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Column index into the columns array in [MultiColumnHeaderState](/engine/6000.5/script-reference/unityeditor/imgui/controls/multicolumnheaderstate.md). |

### Remarks

Note that columns can be hidden by using the context menu of the MultiColumnHeader.

Additional Resources: [TreeView.RowGUIArgs.GetCellRect](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeview/rowguiargs/getcellrect.md).
