TX Text Control .NET for Windows Forms

ForeColor Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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();