# TextViewGenerator.DocumentTargetMarkers Property

> Gets or sets a value indicating that markers for hypertext targets are shown or not.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > TextViewGenerator.DocumentTargetMarkers Property
- **499 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/documenttargetmarkers-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/documenttargetmarkers-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/documenttargetmarkers-property/llms-full.txt

---

### Description

Gets or sets a value indicating that markers for hypertext targets are shown or not.

### Syntax

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

```vbnet
Public Property DocumentTargetMarkers As Boolean
```

### Examples

The following example applies bold formatting through the text view generator's selection by using `TextViewGenerator.DocumentTargetMarkers`.

```csharp
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

textViewGenerator.DocumentTargetMarkers = true;
if (textViewGenerator.DocumentTargetMarkers)
{
    Console.WriteLine("Text View Generator: Document Target Markers is enabled.");
}
```

```vbnet
Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection

textViewGenerator.DocumentTargetMarkers = True
If textViewGenerator.DocumentTargetMarkers Then
    Console.WriteLine("Text View Generator: Document Target Markers is enabled.")
End If
```

---

## Nearby

- **Previous:** [TextViewGenerator.DocumentSizeChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/documentsizechanged-event/llms-full.txt)
- **Next:** [TextViewGenerator.DrawCombobox Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/drawcombobox-event/llms-full.txt)
