SynonymList Class
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WPF. SDK
- Assembly
TXSpell.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WPF. SDK TXSpell.from the setup.dll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
The SynonymList class represents a synonym list that gets its content from a thesaurus file. It can be used directly by the third overload of the TXSpell.CreateSynonyms method or by the first and second overload when the SynonymList is added to the TXSpell.SynonymLists collection. The implementation loads a synonym list from a thesaurus file that is defined by a synonym list path. When using the synonym list name without a file path, the corresponding thesaurus files of the default synonym lists folder are used.
Syntax
public class SynonymListPublic Class SynonymListExamples
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"Members
Constructors
| Constructor | Description |
|---|---|
| SynonymList | Initializes a new instance of the SynonymList class. |
Properties
| Property | Description |
|---|---|
| DisplayName | Gets or sets the text that is displayed for the synonym list inside the options dialog. The default value is the name of the synonym list. |
| IsCreateSynonymsEnabled | Gets or sets a value that indicates whether synonyms are created using this synonym list or not. The default value is true. |
| IsSelectedAsDefault | Gets a value indicating whether the synonym list is selected as the default synonym list by the SynonymLanguage property. The default value is false. |
| Language | Gets or sets the SynonymList's language. |
| Name | Gets or sets the synonym list's name. |