# TextViewGenerator.PermanentControlChars Property

> Gets or sets a value indicating which control characters are shown permanently. The property's value can be a bitwise OR combination of the PermanentControlChar enumeration. The bitwise AND operator can be used to test for a given value.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.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.PermanentControlChars Property
- **495 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/permanentcontrolchars-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/permanentcontrolchars-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/permanentcontrolchars-property/llms-full.txt

---

### Description

Gets or sets a value indicating which control characters are shown permanently. The property's value can be a bitwise OR combination of the [PermanentControlChar](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/permanentcontrolchar/enumeration/llms-full.txt) enumeration. The bitwise AND operator can be used to test for a given value.

### Syntax

```csharp
public PermanentControlChar PermanentControlChars { get; set; }
```

```vbnet
Public Property PermanentControlChars As PermanentControlChar
```

### Examples

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

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

textViewGenerator.PermanentControlChars = PermanentControlChar.Space;
Console.WriteLine($"Permanent Control Chars used by Text View Generator: {textViewGenerator.PermanentControlChars}");
```

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

textViewGenerator.PermanentControlChars = PermanentControlChar.Space
Console.WriteLine($"Permanent Control Chars used by Text View Generator: {textViewGenerator.PermanentControlChars}")
```

---

## Nearby

- **Previous:** [TextViewGenerator.ParagraphFormatChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/paragraphformatchanged-event/llms-full.txt)
- **Next:** [TextViewGenerator.Redo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/redo-method/llms-full.txt)
