TX Text Control .NET for WPF

SpellCheckDialog Method

Method|Introduced in 17.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Invokes the built-in dialog box for correcting misspelled words. The dialog steps through all misspelled words in the current document. It begins with the main text following by all headers, footers and textframes. This dialog is only available when a spell checking component has been connected with the SpellChecker property.

Syntax

SpellCheckDialog()

Invokes the built-in dialog box for correcting misspelled words.

public void SpellCheckDialog();

SpellCheckDialog(object)

Invokes the built-in dialog box for correcting misspelled words using the specified dictionary for making suggestions.

public void SpellCheckDialog(object suggestionDictionary);
ParameterDescription
suggestionDictionary

Specifies the dictionary used for making suggestions. This parameter is only useful, if more than one dictionary has been added to the spellchecker.

Examples

The following example opens the spell check dialog for the text control. The created object is then available to the surrounding document workflow.

textControl.SpellCheckDialog("Approved");
Console.WriteLine("Text Control is ready for use.");