# Item Sizing

## ItemHeight

By default, all items in **RadDropDownList** have equal height, *18px*. You can set the ListElement.**ItemHeight**  property in order to specify the desired height for all items.

> caption Figure 1: ItemHeight

![WinForms RadDropDownList ItemHeight](https://www.telerik.com/products/winforms/documentation/assets/1937e5e8c9767eeb811902db828dad13/dropdown-and-listcontrol-dropdownlist-item-sizing001.png)

### ItemHeight

```C#

this.radDropDownList1.DropDownListElement.ListElement.Font = new Font("Arial", 18f);
this.radDropDownList1.ListElement.ItemHeight = 40;
    
```

```VB.NET

Me.RadDropDownList1.DropDownListElement.ListElement.Font = New Font("Arial", 18.0F)
Me.RadDropDownList1.ListElement.ItemHeight = 40
```

## AutoSizeItems

The RadDropDownList.**AutoSizeItems** property indicates whether items will be sized according to their content.

> caption Figure 2: AutoSizeItems

![WinForms RadDropDownList AutoSizeItems](https://www.telerik.com/products/winforms/documentation/assets/4588ae10aa55b4173b8e08f9035401bd/dropdown-and-listcontrol-dropdownlist-item-sizing002.png)

### AutoSizeItems

```C#

this.radDropDownList1.DropDownListElement.ListElement.Font = new Font("Arial", 8f);
this.radDropDownList1.AutoSizeItems = true;

```

```VB.NET

Me.RadDropDownList1.DropDownListElement.ListElement.Font = New Font("Arial", 8.0F)
Me.RadDropDownList1.AutoSizeItems = True

```

If this property is set to *false* the user can set the **Height** property of each individual **RadListDataItem** in the **Items** collection in order to override the automatic sizing.

> caption Figure 3: Custom height for each item

![WinForms RadDropDownList Custom Height for Each Item](https://www.telerik.com/products/winforms/documentation/assets/6bd3466eb3efc3917ab9c7e3a7bfb81d/dropdown-and-listcontrol-dropdownlist-item-sizing003.gif)

#### Height

```C#

this.radDropDownList1.AutoSizeItems = false;
StringBuilder sb;
for (int i = 0; i < 10; i++)
{
    RadListDataItem item = new RadListDataItem();
    sb = new StringBuilder();
    for (int j = 0; j < i + 1; j++)
    {
        sb.AppendLine("Item" + i + " Line" + j);
    }
    item.Text = sb.ToString();
    item.Height = this.radDropDownList1.ListElement.ItemHeight * (i + 1);
    this.radDropDownList1.Items.Add(item);
}

```

```VB.NET

Me.RadDropDownList1.AutoSizeItems = False
Dim sb As StringBuilder
For i As Integer = 0 To 9
    Dim item As New RadListDataItem()
    sb = New StringBuilder()
    For j As Integer = 0 To i
        sb.AppendLine("Item" & i & " Line" & j)
    Next
    item.Text = sb.ToString()
    item.Height = Me.RadDropDownList1.ListElement.ItemHeight * (i + 1)
    Me.RadDropDownList1.Items.Add(item)
Next

```

## Sizing auto-complete pop-up items

When the RadDropDownList.**AutoCompleteMode** property is set to *Suggest* or *SuggestAppend* you can customize the height of the auto-complete items by setting the DropDownListElement.AutoCompleteSuggest.DropDownList.ListElement.**ItemHeight** property:

> caption Figure 4: AutoCompleteSuggest.DropDownList.ListElement.ItemHeight

![WinForms RadDropDownList AutoCompleteSuggest DropDownList ListElement ItemHeight](https://www.telerik.com/products/winforms/documentation/assets/1a1ece49fccf3c2e643f5dc87202dc92/dropdown-and-listcontrol-dropdownlist-item-sizing004.png)

### Auto-complete items height

```C#

this.radDropDownList1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
this.radDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.ListElement.ItemHeight = 40;

```

```VB.NET
Me.RadDropDownList1.AutoCompleteMode = AutoCompleteMode.SuggestAppend
Me.RadDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.ListElement.ItemHeight = 40
```
