RichEditSpellChecker Class
Allows you to implement the spell checking functionality for the RichEditControl.
Namespace: DevExpress.Xpf.SpellChecker
Assembly: DevExpress.Xpf.SpellChecker.v18.2.dll
Declaration
[TargetType(typeof(StubClass))]
public class RichEditSpellChecker :
SpellCheckerBase<Control>,
ISpellChecker
Remarks
Use the RichEditSpellChecker instance to configure the spell checker behavior for the RichEditControl in XAML.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-check-spelling-within-the-rich-edit-control-e2640.
<Window
x:Class="RichEditSpellChecker_Example.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
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"
Height="350"
Width="525"
mc:Ignorable="d"
Title="MainWindow">
<Grid>
<!--region #RichEditSpellCheckerBehavior-->
<dxre:RichEditControl DocumentSource="An ideal dictionarie shouldbe comprised of all the the words in a given langauge">
<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>
<!--endregion #RichEditSpellCheckerBehavior-->
</Grid>
</Window>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RichEditSpellChecker 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.