# SearchColumn

> Search columns are used to display additional information in the Search Table view.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor
* **Implements:** [IEquatable\<SearchColumn>](https://learn.microsoft.com/dotnet/api/system.iequatable-1), [ISerializationCallbackReceiver](/engine/6000.6/script-reference/unityengine/iserializationcallbackreceiver.md)

```csharp
public class SearchColumn : IEquatable<SearchColumn>, ISerializationCallbackReceiver
```

## Remarks

See [SearchProvider.fetchColumns](/engine/6000.6/script-reference/unityeditor/search/searchprovider/fetchcolumns.md) and [SearchColumnProviderAttribute](/engine/6000.6/script-reference/unityeditor/search/searchcolumnproviderattribute.md) for some examples.

## Fields

| Value                                                                                   | Description                                                                                                                                                                                        |
| --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [content](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/content.md)   | The content is used to display the search column label and image in its header.                                                                                                                    |
| [options](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/options.md)   | Various options used to define how a search column is presented.                                                                                                                                   |
| [path](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/path.md)         | The path can be used by the column delegates to interpret how the data can be manipulated.                                                                                                         |
| [provider](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/provider.md) | The provider is used to indicate which search column provider (see [SearchColumn](/engine/6000.6/script-reference/unityeditor/search/searchcolumn.md)) is used to define the search column format. |
| [selector](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/selector.md) | The selector is used by the column delegates to fetch the search field data.                                                                                                                       |
| [width](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/width.md)       | The column width is used to set the Search Table view column width.                                                                                                                                |

## Constructors

| Constructor                                                                                                                                                                                                                                                      | Description                  |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| [SearchColumn(System.String,System.String,System.String,UnityEngine.GUIContent,UnityEditor.Search.SearchColumnFlags)](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/ctor.md#searchcolumn\(string-string-string-guicontent-searchcolumnflags\)) | Creates a new search column. |
| [SearchColumn(System.String,System.String,UnityEngine.GUIContent,UnityEditor.Search.SearchColumnFlags)](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/ctor.md#searchcolumn\(string-string-guicontent-searchcolumnflags\))                      | Creates a new search column. |
| [SearchColumn(System.String,UnityEngine.GUIContent,UnityEditor.Search.SearchColumnFlags)](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/ctor.md#searchcolumn\(string-guicontent-searchcolumnflags\))                                           | Creates a new search column. |

## Properties

| Property                                                                                      | Description                                                                                                                                                                                                                     |
| --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [binder](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/binder.md)           | If defined, the binder delegate is used to apply contextual data to a visual element.                                                                                                                                           |
| [cellCreator](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/cellcreator.md) | If defined, the cell creator delegate is used to customize how the search column displays its information.                                                                                                                      |
| [comparer](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/comparer.md)       | If defined, the comparer delegate is used to sort search results based on the value displayed in that column.                                                                                                                   |
| [drawer](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/drawer.md)           | If defined, the drawer delegate is used to customize how the search column displays its information.                                                                                                                            |
| [getter](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/getter.md)           | If defined, the getter delegate is used to customize how the search field data is extracted and transformed for display (see [SearchColumn.drawer](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/drawer.md)). |
| [name](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/name.md)               | Name of the search column.                                                                                                                                                                                                      |
| [setter](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/setter.md)           | If defined, the setter delegate writes back the value to the corresponding field of the search result.                                                                                                                          |

## Methods

| Method                                                                                          | Description                              |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------- |
| [InitFunctors](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/initfunctors.md) | Initialize the column provider functors. |

## Static Methods

| Method                                                                                    | Description                                               |
| ----------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [Enumerate](/engine/6000.6/script-reference/unityeditor/search/searchcolumn/enumerate.md) | Enumerate a set of columns for a variety of search items. |
