ControlChars Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Specifies if control characters are visible or not.
Syntax
public bool ControlChars { get; set; }Public Property ControlChars As BooleanExamples
The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.ControlChars.
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.");
}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