RemoveWord 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
Removes a word 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 RemoveWord(string word);Public Function RemoveWord(word As String) As BooleanParameters
| Parameter | Description |
|---|---|
| word | Specifies the word to remove from the user dictionary. |
Return Value
The return value is true, if the word could be removed. Otherwise, it is false.
Examples
The following example uses Remove Word in a focused User Dictionary workflow.
if (userDictionary.RemoveWord("Quarterly report"))
{
Console.WriteLine("Remove Word completed successfully.");
}If userDictionary.RemoveWord("Quarterly report") Then
Console.WriteLine("Remove Word completed successfully.")
End If