IncorrectWordColor Property
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the color to colorize the current incorrect or misspelled (TXTextControl.MisspelledWord) word in the SpellCheckDialog preview component. The default value is System.Windows.Media.Colors.Red.
Syntax
public Color IncorrectWordColor { get; set; }Public Property IncorrectWordColor As ColorExamples
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.Windows.Media.Colors.CornflowerBlue;
Console.WriteLine($"Incorrect Word Color used by Preview: {preview.IncorrectWordColor}");preview.IncorrectWordColor = System.Windows.Media.Colors.CornflowerBlue
Console.WriteLine($"Incorrect Word Color used by Preview: {preview.IncorrectWordColor}")