TX Spell .NET for WPF

DetectableLanguageScopes Property

Property|Introduced in 5.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WPF.SDK as TXSpell.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TXSpell.Core.SDK as 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; }

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

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.