TX Text Control .NET for WPF

BackColor Property

Property|Introduced in 12.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.Server.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the background color of the control. The property value can be set to Color.Transparent to have a transparent background. A transparent background is only possible if the ViewMode property has been set to SimpleControl.

Syntax

public Color BackColor { get; set; }

Examples

The following example uses ServerTextControl.BackColor to set the server text control's background color. The configured value is checked before the workflow continues.

textControl.BackColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Back Color used by Server Text Control: {textControl.BackColor}");