TX Spell .NET for Windows Forms

TXSpell Constructor

Constructor
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK as TXSpell.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TXSpell.Core.SDK as 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();

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

Further Reading