TX Spell .NET for Windows Forms

SynonymList Constructor

Constructor|Introduced in 7.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK as TXSpell.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TXSpell.Core.SDK as TXSpell.dll

Description

Initializes a new instance of the SynonymList class.

Syntax

public SynonymList(string synonymListPath);

Parameters

ParameterDescription
synonymListPath

Specifies the path for the thesaurus dat file. By only specifying the synonym list name without any file path, the corresponding thesaurus file of the default synonym lists folder is used. The name of the specified thesaurus file must begin with "th_" or "thes_" and end with ".dat" or ".idx". If the file does not exist, an ArgumentException is thrown.

Examples

The following example creates a Synonym List instance and configures its display name setting for a document workflow.

TXTextControl.Proofing.SynonymList synonymList = new("document.docx");
synonymList.DisplayName = "CustomerName";