Skip to main content

SpellCheckBuilder.AddWordToDictionary(String) Method

Sets a function called when a user clicks the Add to Dictionary context menu command.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v24.1.dll

NuGet Package: DevExpress.AspNetCore.RichEdit

Declaration

public SpellCheckBuilder AddWordToDictionary(
    string value
)

Parameters

Name Type Description
value String

A function that gets the word to be added to the dictionary.

Returns

Type Description
SpellCheckBuilder

A builder for spell check settings.

Remarks

<script>
function checkWordSpelling(word, callback) {
    ...
};
function addWordToDictionary(word) {
    ...
};
</script>

@(Html.DevExpress().RichEdit("richEdit")
    .SpellCheck (s => {
        s.Enabled(true);
        s.SuggestionCount(5);
        s.AddWordToDictionary("addWordToDictionary");
        s.CheckWordSpelling("checkWordSpelling");
    })
)

For more information, refer to the following help topic: Spell Check.

See Also