# BaseListView

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

## Definition

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

## BaseListView()

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

```csharp
public BaseListView()
```

## BaseListView(IList, float)

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

```csharp
public BaseListView(IList itemsSource, float itemHeight = -1)
```

### 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.
