ToArray Method
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WinForms. SDK TXSpell.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
Converts all user dictionary entries to a string array.
Syntax
public string[] ToArray();Public Function ToArray() As String()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);
}Dim results As String() = userDictionary.ToArray()
For Each text As String In results
Console.WriteLine(text)
Next