VSSpell Control > VSSpell All Members > VSSpell Events > Suggestion Event (VSSpell) |
Fired after a word has been added to the Suggestion property array.
Private Sub VSSpell_Suggestion(Problem As Integer, Cancel As Integer)
This event is fired only if the Suggest property is set to True and there are suggestions found for the bad word. The BadWord event is fired after the final Suggestion event is fired or after a Suggestion event sets the Cancel parameter to True.
The Problem parameter indicates the type of problem. Currently, the only problem supported by the Suggestion event is NOTINDICT (1).
Setting the Cancel parameter to True stops the suggestion generation process. The BadWord event is still fired following a cancelled Suggestion event.