AddWord 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
Adds a word to the user dictionary. The method has no effect, if the UserDictionary.IsEditable property is false or the user dictionary is not added to the TXSpell.Dictionaries or TXSpellChecker.Dictionaries DictionaryCollection.
Syntax
public bool AddWord(string word);Public Function AddWord(word As String) As BooleanParameters
| Parameter | Description |
|---|---|
| word | Specifies the word to add to the user dictionary. |
Return Value
The return value is true, if the word could be added. Otherwise, it is false.
Examples
The following example uses Add Word in a focused User Dictionary workflow.
if (userDictionary.AddWord("Quarterly report"))
{
Console.WriteLine("Add Word completed successfully.");
}If userDictionary.AddWord("Quarterly report") Then
Console.WriteLine("Add Word completed successfully.")
End If