SynonymListsDirectoryPath 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 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; }Public Property SynonymListsDirectoryPath As StringExamples
The following example uses TXSpellChecker.SynonymListsDirectoryPath to configure synonym lists directory path as part of the txspell checker workflow. The configured value is checked before the workflow continues.
tXSpellChecker.SynonymListsDirectoryPath = "document.docx";
if (!string.IsNullOrWhiteSpace(tXSpellChecker.SynonymListsDirectoryPath))
{
Console.WriteLine($"Synonym Lists Directory Path: {tXSpellChecker.SynonymListsDirectoryPath}");
}tXSpellChecker.SynonymListsDirectoryPath = "document.docx"
If Not String.IsNullOrWhiteSpace(tXSpellChecker.SynonymListsDirectoryPath) Then
Console.WriteLine($"Synonym Lists Directory Path: {tXSpellChecker.SynonymListsDirectoryPath}")
End If