VSSpell Control > VSSpell All Members > VSSpell Properties > TypingErrorAction Property |
Sets or returns the action to be taken when a typing error is detected.
[form!]VSSpell.TypingErrorAction[ = TypingErrorActionConstants ]
Typing errors are detected after the CheckTyping method is invoked, every time the user finishes typing a word that cannot be found in the dictionary. This property allows you to specify an action to be performed whenever a bad word is detected.
The settings for the TypingErrorAction property are described below:
Value |
Constant |
Description |
0 |
vsspellNoAction |
No action will be performed when a typing error is detected. |
1 |
vsspellBeep |
Sound a beep when a typing error is detected. |
2 |
vsspellUnderline |
Underline the offending word when a typing error is detected. |
3 |
vsspellBeepAndUnderline |
Sound a beep and underline the offending word when a typing error is detected. |
The underline drawn to indicate typing mistakes is temporary. It is automatically erased when the user types a word that is correct or when the control is redrawn. The type of underline drawn is determined using the UnderlineColor and UnderlineStyle properties.
TypingErrorActionConstants (Enumeration)
vsspellBeepAndUnderline (3)