# SpellCheckDialogStateManager Class

> Provides methods and properties for the StateManager property that is provided by the SpellCheckDialogOpeningEventArgs, DialogButtonEventArgs and the SpellCheckDialogClosingEventArgs in TX Spell .NET for WPF.

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

---

### Description

Provides methods and properties for the StateManager property that is provided by the SpellCheckDialogOpeningEventArgs, DialogButtonEventArgs and the SpellCheckDialogClosingEventArgs in TX Spell .NET for WPF.

### Syntax

```csharp
public sealed class SpellCheckDialogStateManager
```

```vbnet
Public NotInheritable Class SpellCheckDialogStateManager
```

### Examples

The following example includes the next incorrect word value from a Spell Check Dialog State Manager object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Next Incorrect Word: {spellCheckDialogStateManager.NextIncorrectWord}");
Console.WriteLine("Spell Check Dialog State Manager is ready for use.");
```

```vbnet
Console.WriteLine($"Next Incorrect Word: {spellCheckDialogStateManager.NextIncorrectWord}")
Console.WriteLine("Spell Check Dialog State Manager is ready for use.")
```

---

## In This Section

- [SpellCheckDialogStateManager.Close Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialogstatemanager/close-method/llms-full.txt): Closes the spell check dialog.
- [SpellCheckDialogStateManager.NextIFormattedText Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialogstatemanager/nextiformattedtext-property/llms-full.txt): Gets the next object of type TXTextControl.IFormattedText that contains the next misspelled word (TXTextControl.MisspelledWord).
- [SpellCheckDialogStateManager.NextIncorrectWord Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialogstatemanager/nextincorrectword-property/llms-full.txt): Gets an object of type IncorrectWord that is handled next by the SpellCheckDialog.
- [SpellCheckDialogStateManager.NextMisspelledWord Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialogstatemanager/nextmisspelledword-property/llms-full.txt): Gets an object of type TXTextControl.MisspelledWord that is handled next by the SpellCheckDialog.
- [SpellCheckDialogStateManager.SetNext Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialogstatemanager/setnext-method/llms-full.txt): Provides a method to set a specific incorrect or misspelled (TXTextControl.MisspelledWord) word, that should be handled next by the SpellCheckDialog. Furthermore, a complete new text or an object of type TXTextControl.WPF.TextControl can be set to the SpellCheckDialog. A new incorrect word or misspelled word (TXTextControl.IFormattedText.MisspelledWords) collection is connected and handled.

---

## Nearby

- **Previous:** [SpellCheckDialogOpeningEventArgs.StateManager Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialogopeningeventargs/statemanager-property/llms-full.txt)
- **Next:** [SpellCheckDialogStateManager.Close Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialogstatemanager/close-method/llms-full.txt)
