TX Spell .NET for Windows Forms

GetItem Method

Method
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 dictionary from the collection by using the specified name.

Syntax

public Dictionary GetItem(string name);

Parameters

ParameterDescription
name

Specifies a dictionary name.

Return Value

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

Examples

The following example retrieves item from the dictionary collection.

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