# DocumentTarget.Deleteable Property

> Specifies whether the target can be deleted by the end-user while the document is being edited. The default setting of this property is true.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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 > DocumentTarget.Deleteable Property
- **463 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/deleteable-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/deleteable-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/deleteable-property/llms-full.txt

---

### Description

Specifies whether the target can be deleted by the end-user while the 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 creates a named destination for an internal document link by using `DocumentTarget.Deleteable`.

```csharp
DocumentTarget documentTarget = new("CustomerDetails");
textControl.DocumentTargets.Add(documentTarget);

documentTarget.Deleteable = true;
if (documentTarget.Deleteable)
{
    Console.WriteLine("Document Target: Deleteable is enabled.");
}
```

```vbnet
Dim documentTarget As New DocumentTarget("CustomerDetails")
textControl.DocumentTargets.Add(documentTarget)

documentTarget.Deleteable = True
If documentTarget.Deleteable Then
    Console.WriteLine("Document Target: Deleteable is enabled.")
End If
```

---

## Nearby

- **Previous:** [DocumentTarget.ContainsInputPosition Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/containsinputposition-property/llms-full.txt)
- **Next:** [DocumentTarget.ID Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/id-property/llms-full.txt)
