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

SpellCheckerCustomDictionary Class

Represents a custom dictionary of the spell checker.

Namespace: DevExpress.XtraSpellChecker

Assembly: DevExpress.SpellChecker.v18.1.Core.dll

Declaration

public class SpellCheckerCustomDictionary :
    SpellCheckerDictionary

The following members accept/return SpellCheckerCustomDictionary objects:

Library Related API Members
Cross-Platform Class Library DictionaryHelper.GetCustomDictionary()
ASP.NET Web Forms Controls ASPxSpellChecker.GetCustomDictionary()
ASPxSpellCheckerCustomDictionary.Dictionary

Remarks

The custom dictionary can be created and updated by the user. The spelling form provides a command button for appending a word not found in dictionaries to the custom dictionary.

The custom dictionary can be saved to a file and loaded when necessary.

Example

The following code demonstrates how to create the SpellCheckerCustomDictionary dictionary at runtime.

using DevExpress.XtraSpellChecker;
using System;
using System.Globalization;
            SpellCheckerCustomDictionary customDictionary = new SpellCheckerCustomDictionary();
            customDictionary.AlphabetPath = @"Dictionaries\EnglishAlphabet.txt";
            customDictionary.DictionaryPath = @"Dictionaries\CustomEnglish.dic";
            customDictionary.Culture = CultureInfo.InvariantCulture;
            spellChecker1.Dictionaries.Add(customDictionary);

The following code snippets (auto-collected from DevExpress Examples) contain references to the SpellCheckerCustomDictionary 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