TX Spell .NET for Windows Forms

Language Property

Property|Introduced in 7.0
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

Gets or sets the SynonymList's language.

Syntax

public CultureInfo Language { get; set; }

Examples

The following example uses SynonymList.Language to configure language as part of the synonym list workflow. The configured value is checked before the workflow continues.

synonymList.Language = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (synonymList.Language != null)
{
    Console.WriteLine("Synonym List: Language is available.");
}

Remarks

The property is automatically set, if the name of the corresponding synonym list file contains language specific information (e.g. "th_en_US_v2.dat" for English or "th_de_DE_v2.dat" for German). Otherwise, the property returns null.