TX Spell .NET for WPF

Remove Method

Method|Introduced in 7.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WPF.SDK as TXSpell.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TXSpell.Core.SDK as TXSpell.dll

Description

Removes objects of type SynonymList from the collection.

Syntax

public void Remove(SynonymList synonymList);

Parameters

ParameterDescription
synonymList

Specifies the SynonymList.

Examples

The following example removes the first synonym list when the collection is not empty.

if (synonymListCollection.Count > 0)
{
    TXTextControl.Proofing.SynonymList synonymList = synonymListCollection[1];
    synonymListCollection.Remove(synonymList);
}