Back to Devexpress

HunspellDictionaryExtension Class

wpf-devexpress-dot-xpf-dot-spellchecker-2f2b172f.md

latest2.7 KB
Original Source

HunspellDictionaryExtension Class

An extension instance implementing the HunspellDictionary functionality in XAML.

Namespace : DevExpress.Xpf.SpellChecker

Assembly : DevExpress.Xpf.SpellChecker.v25.2.dll

NuGet Package : DevExpress.Wpf.SpellChecker

Declaration

csharp
public class HunspellDictionaryExtension :
    DictionaryMarkupExtension
vb
Public Class HunspellDictionaryExtension
    Inherits 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 Hunspell project (for more information visit the Hunspell web site.

Example

xaml
<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"/>

Inheritance

Object MarkupExtension DevExpress.Xpf.SpellChecker.DictionaryMarkupExtension HunspellDictionaryExtension

See Also

HunspellDictionaryExtension Members

DevExpress.Xpf.SpellChecker Namespace