# GetVisibleColumnIndex(int)

> Convert from column index to visible column index.

## Definition

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

```csharp
public int GetVisibleColumnIndex(int columnIndex)
```

### Parameters

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

### Returns

| Type                                                       | Description           |
| ---------------------------------------------------------- | --------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Visible column index. |

### Remarks

Columns can be hidden so to get the visible column index from a column index use this method. The 'column index' refers to the index into the [MultiColumnHeaderState.columns](/engine/6000.7/script-reference/unityeditor/imgui/controls/multicolumnheaderstate/columns.md) array. The 'visible column index' refers to the currently visible columns shown in the MultiColumnHeader [MultiColumnHeaderState.visibleColumns](/engine/6000.7/script-reference/unityeditor/imgui/controls/multicolumnheaderstate/visiblecolumns.md).
