# DateFormField.EmptyWidth Property

> Gets or sets the horizontal extension, in twips, of the DateFormField, when a date is not set.

- **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 > DateFormField.EmptyWidth Property
- **477 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/emptywidth-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/emptywidth-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/emptywidth-property/llms-full.txt

---

### Description

Gets or sets the horizontal extension, in twips, of the DateFormField, when a date is not set.

### Syntax

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

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

### Examples

The following example adds a prefilled delivery-date field to a form by using `DateFormField.EmptyWidth`.

```csharp
DateFormField dateFormField = new(DateTime.Today.AddDays(14), 0) { Name = "DeliveryDate" };
textControl.FormFields.Add(dateFormField);

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

```vbnet
Dim dateFormField As New DateFormField(Date.Today.AddDays(14), 0) With { .Name = "DeliveryDate" }
textControl.FormFields.Add(dateFormField)

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

---

## Nearby

- **Previous:** [DateFormField.DateFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/dateformat-property/llms-full.txt)
- **Next:** [DateFormField.IsDateControlVisible Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/isdatecontrolvisible-property/llms-full.txt)
