# DocumentTargetEventArgs Class

> The DocumentTargetEventArgs class provides data for the DocumentTargetCreated and DocumentTargetDeleted events. When subtextpart is deleted, the DocumentTarget object provided with the event data has the following valid properties: TargetName, Deleteable, ID and Name. All other properties are undefined.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 28.0
- **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
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > DocumentTargetEventArgs Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttargeteventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttargeteventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttargeteventargs/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttargeteventargs/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttargeteventargs/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttargeteventargs/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttargeteventargs/#members)

---

## In This Section

- [DocumentTargetEventArgs.DocumentTarget Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttargeteventargs/documenttarget-property/llms.txt): Gets an object that represents the document target which causes the event. It is of the type DocumentTarget.

---

## Nearby

- **Previous:** [DocumentTargetCollection.SyncRoot Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttargetcollection/syncroot-property/llms.txt)
- **Next:** [DocumentTargetEventArgs.DocumentTarget Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttargeteventargs/documenttarget-property/llms.txt)
