GetItem Method
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
Gets a particular SynonymList from the collection by using the specified name.
Syntax
public SynonymList GetItem(string name);Public Function GetItem(name As String) As SynonymListParameters
| Parameter | Description |
|---|---|
| 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}");Dim result = synonymListCollection.GetItem("CustomerName")
Console.WriteLine($"Get Item result: {result}")