TX Spell .NET for Windows Forms

IncorrectWordColor Property

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

Description

Gets or sets the color to colorize the current incorrect or misspelled (TXTextControl.MisspelledWord) word inside the SpellCheckDialog preview component. The default value is System.Drawing.Color.Red.

Syntax

public Color IncorrectWordColor { get; set; }

Examples

The following example uses Preview.IncorrectWordColor to configure incorrect word color as part of the preview workflow. The configured value is checked before the workflow continues.

preview.IncorrectWordColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Incorrect Word Color used by Preview: {preview.IncorrectWordColor}");