Skip to main content
All docs
V25.1
  • Dictionary.AlphabetPath Property

    Specifies a path to an alphabet file.

    Namespace: DevExpress.Blazor.RichEdit.SpellCheck

    Assembly: DevExpress.Blazor.RichEdit.v25.1.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 following code snippet adds 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