TX Spell .NET for WPF

SynonymListsDirectoryPath Property

Property|Introduced in 9.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 the path to the default synonym lists folder. The default value is "(Auto)" that determines the SynonymLists 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 SynonymListsDirectoryPath { get; set; }

Examples

The following example uses TXSpell.SynonymListsDirectoryPath to configure synonym lists directory path as part of the txspell workflow. The configured value is checked before the workflow continues.

tXSpell.SynonymListsDirectoryPath = "document.docx";
if (!string.IsNullOrWhiteSpace(tXSpell.SynonymListsDirectoryPath))
{
    Console.WriteLine($"Synonym Lists Directory Path: {tXSpell.SynonymListsDirectoryPath}");
}