BackColor Property
- Namespace
TXTextControl
- 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 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; }Public Property BackColor As ColorExamples
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}");textControl.BackColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Back Color used by Server Text Control: {textControl.BackColor}")