DisplayColors 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
Gets or sets display colors. The property value is an object of the type ServerVisualization.TextViewGenerator.Colors.
Syntax
public TextViewGenerator.Colors DisplayColors { get; set; }Public Property DisplayColors As TextViewGenerator.ColorsExamples
The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.DisplayColors.
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;
textViewGenerator.DisplayColors = new TXTextControl.ServerVisualisation.TextViewGenerator.Colors();
if (textViewGenerator.DisplayColors != null)
{
Console.WriteLine("Text View Generator: Display Colors is available.");
}Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
textViewGenerator.DisplayColors = New TXTextControl.ServerVisualisation.TextViewGenerator.Colors()
If textViewGenerator.DisplayColors IsNot Nothing Then
Console.WriteLine("Text View Generator: Display Colors is available.")
End If