TX Spell .NET for WPF

SpellCheckDialogStateManager 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

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

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

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

Members

Properties

PropertyDescription
NextIFormattedTextGets the next object of type TXTextControl.IFormattedText that contains the next misspelled word (TXTextControl.MisspelledWord).
NextIncorrectWordGets an object of type IncorrectWord that is handled next by the SpellCheckDialog.
NextMisspelledWordGets an object of type TXTextControl.MisspelledWord that is handled next by the SpellCheckDialog.

Methods

MethodDescription
CloseCloses the spell check dialog.
SetNextProvides 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.