TX Spell .NET for WPF

ToArray 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

Converts all user dictionary entries to a string array.

Syntax

public string[] ToArray();

Return Value

The return value is a string array of all user dictionary entries. If the user dictionary is not added to the TXSpell.Dictionaries or TXSpellChecker.Dictionaries DictionaryCollection, the method returns an empty string array.

Examples

The following example uses To Array in a focused User Dictionary workflow.

string[] results = userDictionary.ToArray();
foreach (string text in results)
{
    Console.WriteLine(text);
}