# DocumentTarget Class

> The DocumentTarget class represents a text position in a Text Control document that can be a target of a document link or a bookmark. For more information see the technical article Text Fields and Hypertext Links.

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

---

## On This Page

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

---

## In This Section

- [DocumentTarget.AutoGenerationType Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/autogenerationtype-property/llms.txt): Gets the type of auto-generation. A document target which is the target of an entry in a table of contents is automatically generated when the table of contents is inserted into the document.
- [DocumentTarget.Bounds Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/bounds-property/llms.txt): Gets the bounding rectangle of a target. The bounding contains the top left and the bottom right coordinate of the text input position the target belongs to. The rectangle is given in twips with an origin at the upper left corner of the document. the left and the right coordinate are the same value.
- [DocumentTarget Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/constructor/llms.txt): Creates a new instance of the DocumentTarget class.
- [DocumentTarget.ContainsInputPosition Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/containsinputposition-property/llms.txt): Returns true, if the target's position is the same as the current text input position.
- [DocumentTarget.Deleteable Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/deleteable-property/llms.txt): 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.
- [DocumentTarget.ID Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/id-property/llms.txt): Gets or sets an identifier for the document target. This identifier can be used to uniquely identify the target.
- [DocumentTarget.Name Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/name-property/llms.txt): Relates a user-defined name to a target, that can be any kind of text in addition to the target's TargetName.
- [DocumentTarget.ScrollTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/scrollto-method/llms.txt): Sets the current text input position to the target's position and scrolls it into the visible part of the document.
- [DocumentTarget.Start Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/start-property/llms.txt): Gets the character position (one-based) of the target. The target's position is at the left edge of this character.
- [DocumentTarget.TargetName Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/targetname-property/llms.txt): Gets or sets the target name.

---

## Nearby

- **Previous:** [DocumentSettings.UserDefinedDocumentProperties Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentsettings/userdefineddocumentproperties-property/llms.txt)
- **Next:** [DocumentTarget.AutoGenerationType Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/autogenerationtype-property/llms.txt)
