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

Dictionary.AlphabetPath Property

Specifies a path to an alphabet file.

Namespace: DevExpress.Blazor.RichEdit.SpellCheck

Assembly: DevExpress.Blazor.RichEdit.v24.2.dll

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

C#
public string AlphabetPath { get; set; }

#Property Value

Type Description
String

A file path.

#Remarks

A simple dictionary consists of a dictionary and an alphabet file. The alphabet file is optional and contains a string that lists all capital letters of a language. The Rich Text Editor uses these letters to speed up the construction of spelling suggestions. The following string lists French letters: AÀÁÂÄBCÇDEÈÉÊFGHIÌÍÎÏJKLMNOÓÔÕPQRSTUÙÚÛÜVWXYZ.

The following code snippet adds a simple dictionary:

C#
public void ConfigureServices(IServiceCollection services) {
    services.AddDevExpressBlazor().AddSpellCheck(opts => {
        opts.FileProvider = new PhysicalFileProvider(
            Path.Combine(Directory.GetCurrentDirectory(), "Data", "Dictionaries")
        );
        opts.Dictionaries.Add(new Dictionary {
            DictionaryPath = "customEnglish.dic",
            AlphabetPath = "englishAlphabet.txt",
            Culture = "en-US"
        });
    });
}

Refer to the following topic for more information: Spell Check.

See Also