RemoveAllWords 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
Removes all words from 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 RemoveAllWords();Public Function RemoveAllWords() As BooleanReturn Value
The return value is true, if all words could be removed. Otherwise, it is false.
Examples
The following example uses Remove All Words in a focused User Dictionary workflow.
if (userDictionary.RemoveAllWords())
{
Console.WriteLine("Remove All Words completed successfully.");
}If userDictionary.RemoveAllWords() Then
Console.WriteLine("Remove All Words completed successfully.")
End If