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