TX Spell .NET for Windows Forms

LanguageRecognitionDirectoryPath Property

Property|Introduced in 9.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.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 the path to the language recognition folder that provides the languageRecognition.resources file which is required to detect language scopes in a text. The default value is "(Auto)" that determines the LanguageRecognition directory at the application's root folder or in the \Assembly\ subdirectory in the development machine's TX Spell .NET installation directory.

Syntax

public string LanguageRecognitionDirectoryPath { get; set; }

Examples

The following example uses TXSpell.LanguageRecognitionDirectoryPath to configure language recognition directory path as part of the txspell workflow. The configured value is checked before the workflow continues.

tXSpell.LanguageRecognitionDirectoryPath = "document.docx";
if (!string.IsNullOrWhiteSpace(tXSpell.LanguageRecognitionDirectoryPath))
{
    Console.WriteLine($"Language Recognition Directory Path: {tXSpell.LanguageRecognitionDirectoryPath}");
}