TX Spell .NET for Windows Forms

HyphenationListsDirectoryPath Property

Property|Introduced in 9.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK as TXSpell.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the path to the default hyphenation lists folder. The default value is "(Auto)" that determines the HyphenationLists 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 HyphenationListsDirectoryPath { get; set; }

Examples

The following example uses TXSpellChecker.HyphenationListsDirectoryPath to configure hyphenation lists directory path as part of the txspell checker workflow. The configured value is checked before the workflow continues.

tXSpellChecker.HyphenationListsDirectoryPath = "document.docx";
if (!string.IsNullOrWhiteSpace(tXSpellChecker.HyphenationListsDirectoryPath))
{
    Console.WriteLine($"Hyphenation Lists Directory Path: {tXSpellChecker.HyphenationListsDirectoryPath}");
}