DetectableLanguageScopes 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 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 TXSpell.DetectableLanguageScopes to configure detectable language scopes as part of the txspell workflow. The configured value is checked before the workflow continues.
tXSpell.DetectableLanguageScopes = new System.Globalization.CultureInfo[] { System.Globalization.CultureInfo.GetCultureInfo("en-US") };
if (tXSpell.DetectableLanguageScopes != null)
{
Console.WriteLine("TXSpell: Detectable Language Scopes is available.");
}tXSpell.DetectableLanguageScopes = New System.Globalization.CultureInfo() { System.Globalization.CultureInfo.GetCultureInfo("en-US") }
If tXSpell.DetectableLanguageScopes IsNot Nothing Then
Console.WriteLine("TXSpell: 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.