TX Spell .NET for WPF

Preview Class

Class|Introduced in 3.0
Namespace
TXTextControl.WPF.Proofing
Package
TXTextControl.TXSpell.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.WPF.dll
Install
dotnet add package TXTextControl.TXSpell.WPF.SDK .NET 8 and later. For .NET Framework, reference TXSpell.WPF.dll from the setup.

Description

The Preview class describes and handles attributes of the SpellCheckDialog's preview component. An instance of this class is provided by the SpellCheckDialog.Preview property in TX Spell .NET for WPF.

Syntax

public sealed class Preview

Examples

The following example includes the incorrect word color value from a Preview object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Incorrect Word Color: {preview.IncorrectWordColor}");
Console.WriteLine("Preview is ready for use.");

Members

Properties

PropertyDescription
EditableGets or sets the value specifying whether the SpellCheckDialog preview component is editable or not. The default value is true.
IncorrectWordColorGets 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.