Exemplo n.º 1
0
        public HunspellSpellChecker(Stream affFile, Stream dicFile)
        {
            this.settings = new SpellCheckerSettings()
            {
                SpellCheckUppercaseWords   = true,
                SpellCheckWordsWithNumbers = true
            };

            byte[] affBytes = ReadAllBytes(affFile);
            byte[] dicBytes = ReadAllBytes(dicFile);

            this.spell.Load(affBytes, dicBytes);
        }
        public WordSpellChecker()
        {
            this.settings = new SpellCheckerSettings()
            {
                SpellCheckUppercaseWords   = true,
                SpellCheckWordsWithNumbers = true
            };

            this.customWords = new HashSet <string>();

            this.document             = this.application.Documents.Add();
            document.LanguageDetected = true;
        }