TXSpell Constructor
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WinForms. SDK TXSpell.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
Initializes a new instance of the TXSpell class.
Syntax
TXSpell()
Initializes a new instance of the TXSpell class. For spell check operations that dictionary will be used which was defined by the TXSpell.Language property.
public TXSpell();Public Sub New()TXSpell(string)
Initializes a new instance of the TXSpell class. For spell check operations, a dictionary is used that corresponds to the specified language.
public TXSpell(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 should be loaded as the default dictionary. The parameter corresponds to the TXSpell.Language property. |
Examples
The following example creates a TXSpell instance and configures its dictionaries directory path setting for a document workflow.
TXTextControl.Proofing.TXSpell tXSpell = new();
tXSpell.DictionariesDirectoryPath = "document.docx";Dim tXSpell As New TXTextControl.Proofing.TXSpell()
tXSpell.DictionariesDirectoryPath = "document.docx"