TX Spell .NET for WPF

SynonymList Class

Class|Introduced in 7.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.dll
Install
dotnet add package TXTextControl.TXSpell.WPF.SDK .NET 8 and later. For .NET Framework, reference TXSpell.dll from the setup.
Also in
TXTextControl.TXSpell.Core.SDK as 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 SynonymList

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";

Members

Constructors

ConstructorDescription
SynonymListInitializes a new instance of the SynonymList class.

Properties

PropertyDescription
DisplayNameGets 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.
IsCreateSynonymsEnabledGets or sets a value that indicates whether synonyms are created using this synonym list or not. The default value is true.
IsSelectedAsDefaultGets a value indicating whether the synonym list is selected as the default synonym list by the SynonymLanguage property. The default value is false.
LanguageGets or sets the SynonymList's language.
NameGets or sets the synonym list's name.