ForeColor Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. dll
Description
Gets or sets the foreground color of the control.
Syntax
public Color ForeColor { get; set; }Public Property ForeColor As ColorExamples
The following example uses ServerTextControl.ForeColor to set the server text control's foreground color. The configured value is checked before the workflow continues.
textControl.ForeColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Fore Color used by Server Text Control: {textControl.ForeColor}");textControl.ForeColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Fore Color used by Server Text Control: {textControl.ForeColor}")