# ISearchView

> Search view interface used by the search context to execute UI operations.

## Definition

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

```csharp
public interface ISearchView : IDisposable
```

## Properties

| Property                                                                                               | Description                                                                                                |
| ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- |
| [context](/engine/6000.6/script-reference/unityeditor/search/isearchview/context.md)                   | Returns the current view search context.                                                                   |
| [currentGroup](/engine/6000.6/script-reference/unityeditor/search/isearchview/currentgroup.md)         | Indicates the current group that is selected by the user.                                                  |
| [displayMode](/engine/6000.6/script-reference/unityeditor/search/isearchview/displaymode.md)           | Indicates how the data is displayed in the UI.                                                             |
| [filterCallback](/engine/6000.6/script-reference/unityeditor/search/isearchview/filtercallback.md)     | Callback used to filter items shown in the list.                                                           |
| [itemIconSize](/engine/6000.6/script-reference/unityeditor/search/isearchview/itemiconsize.md)         | Defines the size of items in the search view.                                                              |
| [multiselect](/engine/6000.6/script-reference/unityeditor/search/isearchview/multiselect.md)           | Allows multi-selection of items in the list/grid of items. If false, a user can only select a single item. |
| [position](/engine/6000.6/script-reference/unityeditor/search/isearchview/position.md)                 | Returns the absolute position of the Search window.                                                        |
| [results](/engine/6000.6/script-reference/unityeditor/search/isearchview/results.md)                   | Returns the list of all search results.                                                                    |
| [searchInProgress](/engine/6000.6/script-reference/unityeditor/search/isearchview/searchinprogress.md) | Indicates that the search view is currently running a query and it has not yet completed.                  |
| [selectCallback](/engine/6000.6/script-reference/unityeditor/search/isearchview/selectcallback.md)     | Callback used to override a default Search behavior.                                                       |
| [selection](/engine/6000.6/script-reference/unityeditor/search/isearchview/selection.md)               | Returns the selected items in the view.                                                                    |
| [state](/engine/6000.6/script-reference/unityeditor/search/isearchview/state.md)                       | Returns the view model state of the Search Window.                                                         |
| [trackingCallback](/engine/6000.6/script-reference/unityeditor/search/isearchview/trackingcallback.md) | Callback used to override the tracking behavior.                                                           |

## Methods

| Method                                                                                                             | Description                                                                                             |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------- |
| [AddSelection](/engine/6000.6/script-reference/unityeditor/search/isearchview/addselection.md)                     | Adds new items to the current selection.                                                                |
| [Close](/engine/6000.6/script-reference/unityeditor/search/isearchview/close.md)                                   | Closes the search view.                                                                                 |
| [ExecuteAction](/engine/6000.6/script-reference/unityeditor/search/isearchview/executeaction.md)                   | Executes a Search action on a given list of items.                                                      |
| [ExecuteSelection](/engine/6000.6/script-reference/unityeditor/search/isearchview/executeselection.md)             | Execute the default action of the active selection.                                                     |
| [Focus](/engine/6000.6/script-reference/unityeditor/search/isearchview/focus.md)                                   | Make sure the Search window is now selected to receive input from a user.                               |
| [FocusSearch](/engine/6000.6/script-reference/unityeditor/search/isearchview/focussearch.md)                       | Focus the search text field control.                                                                    |
| [IsPicker](/engine/6000.6/script-reference/unityeditor/search/isearchview/ispicker.md)                             | Indicates if the search view is being used as an advanced search picker.                                |
| [Refresh](/engine/6000.6/script-reference/unityeditor/search/isearchview/refresh.md)                               | Triggers a refresh of the search view and refetches all the search items from enabled search providers. |
| [Repaint](/engine/6000.6/script-reference/unityeditor/search/isearchview/repaint.md)                               | Requests the search view to repaint itself.                                                             |
| [SelectSearch](/engine/6000.6/script-reference/unityeditor/search/isearchview/selectsearch.md)                     | Puts focus in the SearchView text field AND selects all the text inside the text field (if any).        |
| [SetColumns](/engine/6000.6/script-reference/unityeditor/search/isearchview/setcolumns.md)                         | Sets the search view property table columns.                                                            |
| [SetSearchText](/engine/6000.6/script-reference/unityeditor/search/isearchview/setsearchtext.md)                   | Sets the search query text.                                                                             |
| [SetSelection](/engine/6000.6/script-reference/unityeditor/search/isearchview/setselection.md)                     | Updates the search view with a new selection.                                                           |
| [ShowItemContextualMenu](/engine/6000.6/script-reference/unityeditor/search/isearchview/showitemcontextualmenu.md) | Shows a contextual menu for the specified item.                                                         |

## Inheritance

**Inherited Members:**

* [IDisposable.Dispose()](https://learn.microsoft.com/dotnet/api/system.idisposable.dispose)
