Language Property
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
Gets or sets the SynonymList's language.
Syntax
public CultureInfo Language { get; set; }Public Property Language As CultureInfoExamples
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.");
}synonymList.Language = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If synonymList.Language IsNot Nothing Then
Console.WriteLine("Synonym List: Language is available.")
End IfRemarks
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.