TX Text Control .NET Server

PermanentControlChars Property

Property|Introduced in 25.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

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 enumeration. The bitwise AND operator can be used to test for a given value.

Syntax

public PermanentControlChar PermanentControlChars { get; set; }

Examples

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

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}");