# GetColumns()

> Invoked when the table needs to get the list of columns to be displayed.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
IEnumerable<SearchColumn> GetColumns()
```

### Returns

| Type                                                                                                          | Description                   |
| ------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| [IEnumerable\<SearchColumn>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) | Enumerate table view columns. |
