Skip to main content

Dictionary.AlphabetPath Property

Specifies a path to an alphabet file.

Namespace: DevExpress.Blazor.RichEdit.SpellCheck

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

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 example below demonstrates how to add a simple dictionary:

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