# TextFormField.EmptyWidth Property

> Gets or sets the horizontal extension, in twips, of the form field, when it is empty.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > TextFormField.EmptyWidth Property
- **422 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textformfield/emptywidth-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textformfield/emptywidth-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textformfield/emptywidth-property/llms-full.txt

---

### Description

Gets or sets the horizontal extension, in twips, of the form field, when it is empty.

### Syntax

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

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

### Examples

The following example adds a customer-name input field to a form by using `TextFormField.EmptyWidth`.

```csharp
TextFormField textFormField = new(20) { Name = "CustomerName" };
textControl.FormFields.Add(textFormField);

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

```vbnet
Dim textFormField As New TextFormField(20) With { .Name = "CustomerName" }
textControl.FormFields.Add(textFormField)

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

---

## Nearby

- **Previous:** [TextFormField Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textformfield/constructor/llms-full.txt)
- **Next:** [TextFormFieldEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textformfieldeventargs/llms-full.txt)
