# SelectionFormField.EmptyWidth Property

> Gets or sets the horizontal extension, in twips, of the SelectionFormField, when there is no selected item.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > SelectionFormField.EmptyWidth Property
- **522 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selectionformfield/emptywidth-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selectionformfield/emptywidth-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selectionformfield/emptywidth-property/llms-full.txt

---

### Description

Gets or sets the horizontal extension, in twips, of the SelectionFormField, when there is no selected item.

### Syntax

```csharp
public int EmptyWidth { get; set; }
```

```vbnet
Public Property EmptyWidth As Integer
```

### Examples

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

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

selectionFormField.EmptyWidth = 100;
Console.WriteLine($"Empty Width used by Selection Form Field: {selectionFormField.EmptyWidth}");
```

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

selectionFormField.EmptyWidth = 100
Console.WriteLine($"Empty Width used by Selection Form Field: {selectionFormField.EmptyWidth}")
```

---

## Nearby

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