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.v18.1.Core.dll

Declaration

public class SpellCheckerISpellDictionary :
    SpellCheckerDictionaryBase

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.

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);

The following code snippets (auto-collected from DevExpress Examples) contain references to the SpellCheckerISpellDictionary class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also