Esempio n. 1
0
        //------------------------------------------------------------
        #region ** handle check spelling

        internal void SpellCheck()
        {
            if (_editor == null)
            {
                return;
            }

            object webBrowser = null;
            int    errors;

            if ((webBrowser = _editor.GetWebBrowser2()) != null)
            {
                errors = _spellChecker.CheckControl((Control)_editor.Editor, webBrowser, false, null);
            }
            else
            {
                return;
            }

            string msg = errors < 0
                ? Resources.SpellingCanceled_msg
                : string.Format(Resources.SpellingComplete_msg, errors);

            MessageBox.Show(msg, Resources.SpellingComplete_caption);
        }