SynonymList Constructor
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
Initializes a new instance of the SynonymList class.
Syntax
public SynonymList(string synonymListPath);Public Sub New(synonymListPath As String)Parameters
| Parameter | Description |
|---|---|
| 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";Dim synonymList As New TXTextControl.Proofing.SynonymList("document.docx")
synonymList.DisplayName = "CustomerName"