Preview Class
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WinForms. SDK
- Assembly
TXSpell.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WinForms. SDK TXSpell.from the setup.Windows. Forms. dll
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 Windows Forms.
Syntax
public sealed class PreviewPublic NotInheritable Class PreviewExamples
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.");Console.WriteLine($"Incorrect Word Color: {preview.IncorrectWordColor}")
Console.WriteLine("Preview is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Editable | Gets or sets the value specifying whether the SpellCheckDialog preview component is editable or not. The default value is true. |
| IncorrectWordColor | 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. |