TX Spell .NET for Windows Forms

DictionariesDirectoryPath 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 dictionaries folder. The default value is "(Auto)" that determines the Dictionaries 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 DictionariesDirectoryPath { get; set; }

Examples

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

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