# SelectionFormField.Items Property

> Gets or sets a list of items for the SelectionFormField. An item must not be an empty string.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > SelectionFormField.Items Property
- **629 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfield/items-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfield/items-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfield/items-property/llms-full.txt

---

### Description

Gets or sets a list of items for the SelectionFormField. An item must not be an empty string.

### Syntax

```csharp
public string[] Items { get; set; }
```

```vbnet
Public Property Items As String()
```

### Examples

The following example adds a country selector to a fillable form by using `SelectionFormField.Items`.

```csharp
SelectionFormField selectionFormField = new(new[] { "Germany", "United Kingdom", "United States" }, 0) { Name = "Country" };
textControl.FormFields.Add(selectionFormField);

selectionFormField.Items = new string[] { "Quarterly report" };
if (selectionFormField.Items != null)
{
    Console.WriteLine("Selection Form Field: Items is available.");
}
```

```vbnet
Dim selectionFormField As New SelectionFormField(New String() { "Germany", "United Kingdom", "United States" }, 0) With { .Name = "Country" }
textControl.FormFields.Add(selectionFormField)

selectionFormField.Items = New String() { "Quarterly report" }
If selectionFormField.Items IsNot Nothing Then
    Console.WriteLine("Selection Form Field: Items is available.")
End If
```

---

## Nearby

- **Previous:** [SelectionFormField.IsDropDownArrowVisible Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfield/isdropdownarrowvisible-property/llms-full.txt)
- **Next:** [SelectionFormField.SelectedIndex Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfield/selectedindex-property/llms-full.txt)
