# Preview Class

> 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.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 3.0
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WinForms.SDK` (assembly `TXSpell.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.Windows.Forms.dll` from the setup
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > Preview Class
- **499 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/preview/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/preview/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/preview/llms-full.txt

---

### 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](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialog/preview-property/llms-full.txt).

### Syntax

```csharp
public sealed class Preview
```

```vbnet
Public NotInheritable 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.

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

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

---

## In This Section

- [Preview.Editable Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/preview/editable-property/llms-full.txt): Gets or sets the value specifying whether the SpellCheckDialog preview component is editable or not. The default value is true.
- [Preview.IncorrectWordColor Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/preview/incorrectwordcolor-property/llms-full.txt): 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.

---

## Nearby

- **Previous:** [OptionsDialogOpeningEventArgs.Cancel Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/optionsdialogopeningeventargs/cancel-property/llms-full.txt)
- **Next:** [Preview.Editable Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/preview/editable-property/llms-full.txt)
