TX Spell .NET for WPF

GetItem Method

Method
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

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}");