Back to Devexpress

RichEditBuilder.SpellCheck(Action<SpellCheckBuilder>) Method

aspnetcore-devexpress-dot-aspnetcore-dot-richedit-dot-richeditbuilder-dot-spellcheck-x28-system-dot-action-devexpress-dot-aspnetcore-dot-richedit-dot-spellcheckbuilder-x29.md

latest1.8 KB
Original Source

RichEditBuilder.SpellCheck(Action<SpellCheckBuilder>) Method

Specifies spell check settings.

Namespace : DevExpress.AspNetCore.RichEdit

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

NuGet Package : DevExpress.AspNetCore.RichEdit

Declaration

csharp
public RichEditBuilder SpellCheck(
    Action<SpellCheckBuilder> configure
)

Parameters

NameTypeDescription
configureAction<SpellCheckBuilder>

A delegate method that specifies spell check settings.

|

Returns

TypeDescription
RichEditBuilder

A builder for the Rich Text Editor.

|

Remarks

cshtml
<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

RichEditBuilder Class

RichEditBuilder Members

DevExpress.AspNetCore.RichEdit Namespace