SpellCheckerISpellDictionary Class

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

Namespace: DevExpress.XtraSpellChecker

Assembly: DevExpress.SpellChecker.v20.1.Core.dll

Declaration

public class SpellCheckerISpellDictionary :
    SpellCheckerDictionaryBase
Public Class SpellCheckerISpellDictionary
    Inherits SpellCheckerDictionaryBase

Related API Members

The following members accept/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.

Examples

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