TX Spell .NET for Windows Forms

Add Method

Method|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

Adds objects of type SynonymList to the collection.

Syntax

public int Add(SynonymList synonymList);

Parameters

ParameterDescription
synonymList

Specifies the SynonymList.

Return Value

The collection index where the SynonymList has been added.

Examples

The following example adds an item to the synonym list collection.

var result = synonymListCollection.Add(new TXTextControl.Proofing.SynonymList("document.docx"));
Console.WriteLine($"Add result: {result}");