ForeColor Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Overridden. Gets or sets the foreground color of the control which is the color of the document's text.
Syntax
public override Color ForeColor { get; set; }Public Overrides Property ForeColor As ColorExamples
The following example uses TextControl.ForeColor to set the text control's foreground color. The change is then applied to the active document or user interface.
textControl.ForeColor = System.Drawing.Color.LightSteelBlue;
textControl.Update();textControl.ForeColor = System.Drawing.Color.LightSteelBlue
textControl.Update()