Language Property
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WinForms. 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 dictionary's language.
Syntax
public CultureInfo Language { get; set; }Public Property Language As CultureInfoExamples
The following example uses Dictionary.Language to configure language as part of the dictionary workflow. The configured value is checked before the workflow continues.
dictionary.Language = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (dictionary.Language != null)
{
Console.WriteLine("Dictionary: Language is available.");
}dictionary.Language = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If dictionary.Language IsNot Nothing Then
Console.WriteLine("Dictionary: Language is available.")
End IfRemarks
The property is automatically set, if the name of the dictionary file contains language specific information (e.g. "en_medical.txd" for English or "de_CH_frami.dic" for German (Switzerland)). Otherwise, the property returns null.