# TextControl.ControlChars Property

> Specifies if control characters are visible or not. This is a dependency property.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.ControlChars Property
- **360 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/controlchars-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/controlchars-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/controlchars-property/llms-full.txt

---

### Description

Specifies if control characters are visible or not. This is a dependency property.

### Syntax

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

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

### Examples

The following example uses `TextControl.ControlChars` to configure control chars as part of the text control workflow. The configured value is checked before the workflow continues.

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

```vbnet
textControl.ControlChars = True
If textControl.ControlChars Then
    Console.WriteLine("Text Control: Control Chars is enabled.")
End If
```

---

## Nearby

- **Previous:** [TextControl.ContentsReset Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/contentsreset-event/llms-full.txt)
- **Next:** [TextControl.Copy Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/copy-method/llms-full.txt)
