Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpellCheckerDictionaryCollection Class

The collection of dictionaries provided for the RichEditSpellChecker or DXSpellChecker behaviors.

Namespace: DevExpress.Xpf.SpellChecker

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

NuGet Package: DevExpress.Wpf.SpellChecker

#Declaration

public class SpellCheckerDictionaryCollection :
    Collection<object>

The following members return SpellCheckerDictionaryCollection objects:

#Remarks

Use the SpellCheckerDictionaryCollection collection to add dictionaries to the RichEditSpellChecker or DXSpellChecker behaviors in XAML. The following dictionary extensions are supported:

#Example

View Example

<!--Add the following namespace declarations: 
xmlns:dxre="http://schemas.devexpress.com/winfx/2008/xaml/richedit"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:dxspch="http://schemas.devexpress.com/winfx/2008/xaml/spellchecker"-->

<dxre:RichEditControl CommandBarStyle="Ribbon"
                      x:Name="richEditControl" 
                      DocumentSource="An ideal dictionarie shouldbe comprised of all the the words in a given langauge">
<dxre:RichEditControl.SpellCheckerOptions>
<dxre:DXRichEditSpellCheckerOptions AutoDetectDocumentCulture="False"/>
</dxre:RichEditControl.SpellCheckerOptions>
    <dxmvvm:Interaction.Behaviors>
        <dxspch:RichEditSpellChecker CheckAsYouType="True"
                                     Culture="en-US"
                                     IgnoreMixedCaseWords="False"
                                     IgnoreUri="False"
                                     SpellingFormType="Word">
            <dxspch:RichEditSpellChecker.Dictionaries>
                <dxspch:HunspellDictionary Culture="en-US" 
                                           DictionaryUri="pack://application:,,,/Dictionaries/en_US.dic"
                                           GrammarUri="pack://application:,,,/Dictionaries/en_US.aff"/>
                <dxspch:SpellCheckerCustomDictionary Culture="en-US"
                                                     DictionaryUri="Dictionaries/CustomEnglish.dic"
                                                     AlphabetUri="Dictionaries/EnglishAlphabet.txt"/>
            </dxspch:RichEditSpellChecker.Dictionaries>
        </dxspch:RichEditSpellChecker>
    </dxmvvm:Interaction.Behaviors>
</dxre:RichEditControl>

#Inheritance

Object
Collection<Object>
SpellCheckerDictionaryCollection
See Also