Skip to main content
A newer version of this page is available. .

SpellCheckerISpellDictionary Class

Represents an XtraSpellChecker dictionary originated from a dictionary in the ISpell format.

Namespace: DevExpress.XtraSpellChecker

Assembly: DevExpress.SpellChecker.v19.2.Core.dll

Declaration

public class SpellCheckerISpellDictionary :
    SpellCheckerDictionaryBase

The following members return SpellCheckerISpellDictionary objects:

Remarks

The SpellCheckerISpellDictionary instance is created by decompressing the base file, specified by the DictionaryBase.DictionaryPath property with the help of the affix file located at the SpellCheckerISpellDictionary.GrammarPath file path. Base files and affix files are a part of the non-commercial GNU ISpell project.

Note

Currently, you should use ISpell dictionaries only in the plain text format - one word per line, rather than hashed (i.e. not processed with the buildhash utility). Search for them on this page.

Example

The following code demonstrates how to create the SpellCheckerISpellDictionary dictionary at runtime.

using DevExpress.XtraSpellChecker;
using System;
using System.Globalization;
            spellChecker1.Dictionaries.Clear();

            SpellCheckerISpellDictionary ispellDictionaryEnglish = new SpellCheckerISpellDictionary();
            ispellDictionaryEnglish.DictionaryPath = @"Dictionaries\ISpell\en_US\american.xlg";
            ispellDictionaryEnglish.GrammarPath = @"Dictionaries\ISpell\en_US\english.aff";
            ispellDictionaryEnglish.AlphabetPath = @"Dictionaries\EnglishAlphabet.txt";
            ispellDictionaryEnglish.Culture = new CultureInfo("en-US");
            ispellDictionaryEnglish.Load();
            spellChecker1.Dictionaries.Add(ispellDictionaryEnglish);
See Also