Back to Devexpress

Dictionary.AlphabetPath Property

blazor-devexpress-dot-blazor-dot-richedit-dot-spellcheck-dot-dictionary.md

latest1.9 KB
Original Source

Dictionary.AlphabetPath Property

Specifies a path to an alphabet file.

Namespace : DevExpress.Blazor.RichEdit.SpellCheck

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public string AlphabetPath { get; set; }

Property Value

TypeDescription
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:

csharp
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 additional information: Spell Check.

See Also

Dictionary Class

Dictionary Members

DevExpress.Blazor.RichEdit.SpellCheck Namespace