TX Spell .NET for Windows Forms

TXSpellChecker Constructor

Constructor
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK as TXSpell.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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();

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);
ParameterDescription
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";

Further Reading

  • Share a Single TXSpellChecker Instance Across Multiple TextControls –