# displayMode

> Indicates how the data is displayed in the UI.

## Definition

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

```csharp
DisplayMode displayMode { get; }
```

### Remarks

![Example ISearchView displayMode (displayMode)](/api/media?file=/engine/6000.5/media/images/Example_ISearchView_displayMode.png).

### Examples

```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Search;

static class Example_ISearchView_displayMode
{
    [MenuItem("Examples/ISearchView/displayMode")]
    public static void Run()
    {
        // SearchService can open a SearchView.
        var view = SearchService.ShowContextual("asset");

        // You can assign DisplayMode as iconSizeValue...
        view.itemIconSize = (float)DisplayMode.List;

        // ... and this will update displayMode
        Debug.Assert(view.displayMode == DisplayMode.List);
    }
}
```
