LanguageRecognitionDirectoryPath Property
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WinForms. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. 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; }Public Property LanguageRecognitionDirectoryPath As StringExamples
The following example uses TXSpellChecker.LanguageRecognitionDirectoryPath to configure language recognition directory path as part of the txspell checker workflow. The configured value is checked before the workflow continues.
tXSpellChecker.LanguageRecognitionDirectoryPath = "document.docx";
if (!string.IsNullOrWhiteSpace(tXSpellChecker.LanguageRecognitionDirectoryPath))
{
Console.WriteLine($"Language Recognition Directory Path: {tXSpellChecker.LanguageRecognitionDirectoryPath}");
}tXSpellChecker.LanguageRecognitionDirectoryPath = "document.docx"
If Not String.IsNullOrWhiteSpace(tXSpellChecker.LanguageRecognitionDirectoryPath) Then
Console.WriteLine($"Language Recognition Directory Path: {tXSpellChecker.LanguageRecognitionDirectoryPath}")
End If