SpellCheckDialogStateManager 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
Provides methods and properties for the StateManager property that provided by the SpellCheckDialogOpeningEventArgs, DialogButtonEventArgs and the SpellCheckDialogClosingEventArgs in TX Spell .NET for Windows.Forms.
Syntax
public sealed class SpellCheckDialogStateManagerPublic NotInheritable Class SpellCheckDialogStateManagerExamples
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.
Console.WriteLine($"Next Incorrect Word: {spellCheckDialogStateManager.NextIncorrectWord}");
Console.WriteLine("Spell Check Dialog State Manager is ready for use.");Console.WriteLine($"Next Incorrect Word: {spellCheckDialogStateManager.NextIncorrectWord}")
Console.WriteLine("Spell Check Dialog State Manager is ready for use.")Members
Properties
| Property | Description |
|---|---|
| NextIFormattedText | Gets the next object of type TXTextControl.IFormattedText that contains the next misspelled word (TXTextControl.MisspelledWord). |
| NextIncorrectWord | Gets an object of type IncorrectWord that handled next by the SpellCheckDialog. |
| NextMisspelledWord | Gets an object of type TXTextControl.MisspelledWord that is handled next by the SpellCheckDialog. |
Methods
| Method | Description |
|---|---|
| Close | Closes the spell check dialog. |
| SetNext | 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.TextControl can be set to the SpellCheckDialog. A new incorrect word or misspelled word (TXTextControl.IFormattedText.MisspelledWords) collection is connected and handled. |