# ComboBoxContentControl.ListItems Property

> Gets or sets the list items of the combo box content control field.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.Fields > ComboBoxContentControl.ListItems Property
- **455 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/comboboxcontentcontrol/listitems-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/comboboxcontentcontrol/listitems-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/comboboxcontentcontrol/listitems-property/llms-full.txt

---

### Description

Gets or sets the list items of the combo box content control field.

### Syntax

```csharp
public List<ComboBoxListItem> ListItems { get; set; }
```

```vbnet
Public Property ListItems As List(Of ComboBoxListItem)
```

### Examples

The following example uses `ComboBoxContentControl.ListItems` to configure list items as part of the combo box content control workflow. The configured value is checked before the workflow continues.

```csharp
comboBoxContentControl.ListItems = new List<TXTextControl.DocumentServer.Fields.ComboBoxListItem>();
if (comboBoxContentControl.ListItems != null)
{
    Console.WriteLine("Combo Box Content Control: List Items is available.");
}
```

```vbnet
comboBoxContentControl.ListItems = New List(Of TXTextControl.DocumentServer.Fields.ComboBoxListItem)()
If comboBoxContentControl.ListItems IsNot Nothing Then
    Console.WriteLine("Combo Box Content Control: List Items is available.")
End If
```

---

## Nearby

- **Previous:** [ComboBoxContentControl Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/comboboxcontentcontrol/constructor/llms-full.txt)
- **Next:** [ContentControlFieldAdapter Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/contentcontrolfieldadapter/llms-full.txt)
