blazor-devexpress-dot-blazor-dot-richedit-dot-spellcheck-7c7b2e29.md
Implements the base API for dictionaries.
Namespace : DevExpress.Blazor.RichEdit.SpellCheck
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public abstract class DictionaryBase
The built-in spell check service uses dictionaries to check spelling. Use the Dictionaries property to get a list that contains all the added dictionaries. To extend the dictionary list, pass a simple, ISpell, or Hunspell dictionary to the list’s Add method.
The following code snippet adds an ISpell dictionary:
public void ConfigureServices(IServiceCollection services) {
services.AddDevExpressBlazor().AddSpellCheck(opts => {
opts.FileProvider = new PhysicalFileProvider(
Path.Combine(Directory.GetCurrentDirectory(), "Data", "Dictionaries")
);
opts.Dictionaries.Add(new ISpellDictionary {
DictionaryPath = "american.xlg",
GrammarPath = "english.aff",
Culture = "en-US"
});
});
}
Refer to the following topic for additional information: Spell Check.
Object DictionaryBase Dictionary
See Also