Remove 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 objects of the type Dictionary from the collection and invalidate them for spell checking and suggestion operations.
Syntax
public void Remove(Dictionary dictionary);Public Sub Remove(dictionary As Dictionary)Parameters
| Parameter | Description |
|---|---|
| dictionary | Specifies the dictionary. |
Examples
The following example removes the first dictionary when the collection is not empty.
if (dictionaryCollection.Count > 0)
{
TXTextControl.Proofing.Dictionary dictionary = dictionaryCollection[1];
dictionaryCollection.Remove(dictionary);
}If dictionaryCollection.Count > 0 Then
Dim dictionary As TXTextControl.Proofing.Dictionary = dictionaryCollection.Item(1)
dictionaryCollection.Remove(dictionary)
End IfRemarks
This method throws an exception when called while the SpellCheckDialog is open (except for removing dictionaries of type UserDictionary when the built-in options dialog was invoked by a SpellCheckdialog's dialog button).