TX Spell .NET for WPF

TXSpell Constructor

Constructor
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WPF.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

  • Using TX Spell .NET in ASP.NET –