DetectableLanguageScopes Property
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets a list of all languages that are used to detect language scopes in a text.
Syntax
public CultureInfo[] DetectableLanguageScopes { get; set; }Public Property DetectableLanguageScopes As CultureInfo()Examples
The following example uses TXSpellChecker.DetectableLanguageScopes to configure detectable language scopes as part of the txspell checker workflow. The configured value is checked before the workflow continues.
tXSpellChecker.DetectableLanguageScopes = new System.Globalization.CultureInfo[] { System.Globalization.CultureInfo.GetCultureInfo("en-US") };
if (tXSpellChecker.DetectableLanguageScopes != null)
{
Console.WriteLine("TXSpell Checker: Detectable Language Scopes is available.");
}tXSpellChecker.DetectableLanguageScopes = New System.Globalization.CultureInfo() { System.Globalization.CultureInfo.GetCultureInfo("en-US") }
If tXSpellChecker.DetectableLanguageScopes IsNot Nothing Then
Console.WriteLine("TXSpell Checker: Detectable Language Scopes is available.")
End IfRemarks
From the 10 most occurring native languages TX Spell supports Arabic, German, English, Spanish, French, Portuguese and Russian. These languages are set as default for detecting language scopes.