# IndexOf(Column)

> Returns the index of the specified column if it is contained in the collection; returns -1 otherwise.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public int IndexOf(Column column)
```

### Parameters

**** (\[Column]\(/engine/6000.6/script-reference/unityengine/uielements/column)): The column to locate in the [Columns](/engine/6000.6/script-reference/unityengine/uielements/columns.md).

### Returns

| Type                                                       | Description                                                        |
| ---------------------------------------------------------- | ------------------------------------------------------------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the column if found in the collection; otherwise, -1. |
