TX Text Control .NET for Windows Forms

ActiveFormFieldColor Property

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

Description

Gets or sets the highlight color of a form field containing the current text input position. To suppress highlighting the active FormField the property value can be set to Color.Transparent.

Syntax

public Color ActiveFormFieldColor { get; set; }

Examples

The following example uses Colors.ActiveFormFieldColor to configure active form field color as part of the colors workflow. The configured value is checked before the workflow continues.

colors.ActiveFormFieldColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Active Form Field Color used by Colors: {colors.ActiveFormFieldColor}");