# TextViewGenerator.ControlChars Property

> Specifies if control characters are visible 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.ControlChars Property
- **478 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/controlchars-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/controlchars-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/controlchars-property/llms-full.txt

---

### Description

Specifies if control characters are visible or not.

### Syntax

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

```vbnet
Public Property ControlChars As Boolean
```

### Examples

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

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

textViewGenerator.ControlChars = true;
if (textViewGenerator.ControlChars)
{
    Console.WriteLine("Text View Generator: Control Chars is enabled.");
}
```

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

textViewGenerator.ControlChars = True
If textViewGenerator.ControlChars Then
    Console.WriteLine("Text View Generator: Control Chars is enabled.")
End If
```

---

## Nearby

- **Previous:** [TextViewGenerator.CommentStateChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/commentstatechanged-event/llms-full.txt)
- **Next:** [TextViewGenerator.DialogBoxKind Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/dialogboxkind-enumeration/llms-full.txt)
