# TextField.Deleteable Property

> Specifies whether a text field can be deleted by the end-user while a TX Text Control document is being edited. The default setting of this property is true.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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 > TextField.Deleteable Property
- **561 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/deleteable-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/deleteable-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/deleteable-property/llms-full.txt

---

### Description

Specifies whether a text field can be deleted by the end-user while a TX Text Control document is being edited. The default setting of this property is true.

### Syntax

```csharp
public bool Deleteable { get; set; }
```

```vbnet
Public Property Deleteable As Boolean
```

### Examples

The following example inserts a Word-compatible text field into a template by using `TextField.Deleteable`.

```csharp
TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);

textField.Deleteable = true;
if (textField.Deleteable)
{
    Console.WriteLine("Text Field: Deleteable is enabled.");
}
```

```vbnet
Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" })
textControl.TextFields.Add(textField)

textField.Deleteable = True
If textField.Deleteable Then
    Console.WriteLine("Text Field: Deleteable is enabled.")
End If
```

### See Also

Text Fields and Hypertext Links - Editing Marked Text Fields.

---

## Nearby

- **Previous:** [TextField.ContainsInputPosition Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/containsinputposition-property/llms-full.txt)
- **Next:** [TextField.DoubleClickEvent Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/doubleclickevent-property/llms-full.txt)
