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

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.2.dll

NuGet Package: DevExpress.AspNetCore.RichEdit

#Declaration

C#
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