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

HunspellDictionaryExtension Class

An extension instance implementing the HunspellDictionary functionality.

Namespace: DevExpress.Xpf.SpellChecker

Assembly: DevExpress.Xpf.SpellChecker.v19.1.dll

Declaration

public class HunspellDictionaryExtension :
    DictionaryMarkupExtension

Remarks

Use the HunspellDictionaryExtension instance to add a custom dictionary in XAML using the DXSpellChecker or RichEditSpellChecker behavior.

The HunspellDictionaryExtension instance requires specifying the dictionary file (the HunspellDictionaryExtension.DictionaryUri property) and an affix file (the HunspellDictionaryExtension.GrammarUri property). The dictionary file contains only the root forms of words with information about morphological affix classes to combine with the roots. The affix file contains lists of affixes along with their context restrictions and effects. The affix file also serves as a settings file for the dictionary, containing all meta-data and settings.

Note

We bear no responsibility for the content and availability of Hunspell dictionaries and affix files, since they are part of Hunspellproject (for more information visit the Hunspell web site.

Example

<dxspch:HunspellDictionary Culture="en-US" 
                           DictionaryUri="pack://siteoforigin:,,,/Dictionaries/Hunspell/en-US/en-US.dic" 
                        GrammarUri="pack://siteoforigin:,,,/Dictionaries/Hunspell/en-US/en-US.aff"/>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HunspellDictionaryExtension 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.

Inheritance

Object
MarkupExtension
DevExpress.Xpf.SpellChecker.DictionaryMarkupExtension
HunspellDictionaryExtension
See Also