TXSpellChecker Constructor
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WinForms. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Initializes a new instance of the TXSpellChecker class.
Syntax
TXSpellChecker()
Initializes a new instance of the TXSpellChecker class. For spell check operations, a dictionary is used that is defined through the TXSpellChecker.Language property.
public TXSpellChecker();Public Sub New()TXSpellChecker(string)
Initializes a new instance of the TXSpellChecker class. For spell check operations, a dictionary is used that corresponds to the specified language.
public TXSpellChecker(string language);Public Sub New(language As String)| Parameter | Description |
|---|---|
| language | The name of a dictionary that is located in the default dictionary folder and is loaded as default dictionary. The parameter corresponds to the TXSpellChecker.Language property. |
Examples
The following example creates a TXSpell Checker instance and configures its dictionaries directory path setting for a document workflow.
using TXTextControl.Proofing.TXSpellChecker tXSpellChecker = new();
tXSpellChecker.DictionariesDirectoryPath = "document.docx";Dim tXSpellChecker As New TXTextControl.Proofing.TXSpellChecker()
tXSpellChecker.DictionariesDirectoryPath = "document.docx"