TX Spell .NET for Windows Forms

GetItem 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

Gets a particular SynonymList from the collection by using the specified name.

Syntax

public SynonymList GetItem(string name);

Parameters

ParameterDescription
name

Specifies a synonym list name.

Return Value

The return value is null, if a SynonymList with the specified name could not be found. Otherwise, it is an object of type SynonymList.

Examples

The following example retrieves item from the synonym list collection.

var result = synonymListCollection.GetItem("CustomerName");
Console.WriteLine($"Get Item result: {result}");