Show Method
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Invokes the built-in dialog box for checking incorrect or misspelled (TXTextControl.WPF.TextControl.MisspelledWords) words. The first implementation opens the spell check dialog for checking of the TXSpellChecker.IncorrectWords collection in TX Spell for WPF. To connect the SpellCheckDialog with an object of type TXTextControl.WPF.TextControl, the Show method provides the third implementation. At both implementations, the dialog's selected suggestion dictionary is specified through the SuggestionDictionaryComboBox.SuggestionDictionary property. The second and the fourth implementation can be used to invoke the dialog with another suggestion dictionary.
Syntax
Show(Window)
Invokes the built-in dialog box for correcting incorrect words of the TXSpellChecker.IncorrectWords collection in TXSpell for WPF. The SuggestionDictionaryComboBox.SuggestionDictionary is selected to create suggestions.
public void Show(Window owner);Public Sub Show(owner As Window)| Parameter | Description |
|---|---|
| owner | Any object that implements |
Show(Window, Dictionary)
Invokes the built-in dialog box for checking incorrect words of the TXSpellChecker.IncorrectWords collection in TXSpell for WPF. The specified suggestion dictionary is selected to create suggestions.
public void Show(Window owner, Dictionary suggestionDictionary);Public Sub Show(owner As Window, suggestionDictionary As Dictionary)| Parameter | Description |
|---|---|
| owner | Any object that implements |
| suggestionDictionary | Specifies the dictionary used for creating suggestions. This parameter is only useful, if more than one dictionary is added to the spellchecker's dictionary collection. |
Show(object)
Invokes the built-in dialog box for checking misspelled words (TXTextControl.WPF.TextControl.MisspelledWords) of a specific TextControl (TXTextControl.WPF.TextControl). The SuggestionDictionaryComboBox.SuggestionDictionary is selected to create suggestions.
public void Show(object textControl);Public Sub Show(textControl As Object)| Parameter | Description |
|---|---|
| textControl | Specifies the object of type |
Show(object, Dictionary)
Invokes the built-in dialog box for checking misspelled words (TXTextControl.WPF.TextControl.MisspelledWords) of a specific TextControl (TXTextControl.WPF.TextControl). The specified suggestion dictionary is selected to create suggestions.
public void Show(object textControl, Dictionary suggestionDictionary);Public Sub Show(textControl As Object, suggestionDictionary As Dictionary)| Parameter | Description |
|---|---|
| textControl | Specifies the object of type |
| suggestionDictionary | Specifies the dictionary used for creating suggestions. This parameter is only useful, if more than one dictionary is added to the spellchecker's dictionary collection. |
Examples
The following example uses Show in a focused Spell Check Dialog workflow. The created object is then available to the surrounding document workflow.
spellCheckDialog.Show("Approved", new TXTextControl.Proofing.UserDictionary());
Console.WriteLine("Spell Check Dialog is ready for use.");spellCheckDialog.Show("Approved", New TXTextControl.Proofing.UserDictionary())
Console.WriteLine("Spell Check Dialog is ready for use.")