# ListView

> Creates a ListView with all default properties. The itemsSource must all be set for the ListView to function properly.

## Definition

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

## ListView()

Creates a [ListView](/engine/6000.0/script-reference/unityengine/uielements/listview.md) with all default properties. The itemsSource must all be set for the ListView to function properly.

```csharp
public ListView()
```

## ListView(IList, float, Func\<VisualElement>, Action\<VisualElement, int>)

Constructs a [ListView](/engine/6000.0/script-reference/unityengine/uielements/listview.md), with all important properties provided.

```csharp
public ListView(IList itemsSource, float itemHeight = -1, Func<VisualElement> makeItem = null, Action<VisualElement, int> bindItem = null)
```

### Parameters

**** (\[IList]\(https\://learn.microsoft.com/dotnet/api/system.collections.ilist)): The list of items to use as a data source.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The height of each item, in pixels.**** (\[Func\<VisualElement>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): The factory method to call to create a display item. The method should return a VisualElement that can be bound to a data item.**** (\[Action\<VisualElement, int>]\(https\://learn.microsoft.com/dotnet/api/system.action)): The method to call to bind a data item to a display item. The method receives as parameters the display item to bind, and the index of the data item to bind it to.
