TX Spell .NET for WPF

DetectableLanguageScopes Property

Property|Introduced in 5.0
Namespace
TXTextControl.WPF.Proofing
Package
TXTextControl.TXSpell.WPF.SDK as TXSpell.WPF.dll from the private NuGet feed or Text Control Offline Packages

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; }

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.");
}

Remarks

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.