TX Spell .NET for Windows Forms

SynonymGroup Class

Class|Introduced in 7.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.dll
Install
dotnet add package TXTextControl.TXSpell.WinForms.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 SynonymGroup class refers to a collection of synonyms with common meaning to the word or phrase that was determined by the TXSpell.CreateSynonyms method.

Syntax

public class SynonymGroup

Examples

The following example includes the part of speech value from a Synonym Group object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Part Of Speech: {synonymGroup.PartOfSpeech}");
Console.WriteLine("Synonym Group is ready for use.");

Members

Properties

PropertyDescription
LanguageGets the SynonymGroup's language. The property value equals to the language of the SynonymList that has been used to provide the SynonymGroup's synonyms.
PartOfSpeechGets the part of speech or other meaning specific description for this SynonymGroup. If no such value is defined by the corresponding SynonymList, the property returns null.
SynonymsGets an array of synonyms with common meaning where the first entry also describes the meaning itself.