private void SpellCheck_WordAddDictionaryOrIgnoreRequested(object sender, WordHandleEventArgs e)
 {
     // check if the word was requested to be added to the dictionary..
     if (e.AddToDictionary)
     {
         e.ScintillaSpellCheck.AddToUserDictionary(e.Word);
         SpellCheckEnabled = true; // indicate to force a spell check..
         DoSpellCheck();
     }
     // check if the word was requested to be added to the ignore word list..
     else if (e.AddToIgnore)
     {
         e.ScintillaSpellCheck.AddToUserIgnoreList(e.Word);
         SpellCheckEnabled = true; // indicate to force a spell check..
         DoSpellCheck();
     }
 }
 /// <summary>
 /// Handles the UserWordReplace event of the SpellCheck control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="WordHandleEventArgs"/> instance containing the event data.</param>
 private void SpellCheck_UserWordReplace(object sender, WordHandleEventArgs e)
 {
     // if the user changed the text of a Scintilla via the spell check context
     // menu to correct a word, then there is no reason to spell check the document again after the text has been changed..
     TextChangedViaSpellCheck = true;
 }
 private void SpellCheck_WordAddDictionaryRequested(object sender, WordHandleEventArgs e)
 {
     spellCheck.AddToUserDictionary(e.Word);
 }