Back to Devexpress

SpellCheckBuilder.Enabled(Boolean) Method

aspnetcore-devexpress-dot-aspnetcore-dot-richedit-dot-spellcheckbuilder-dot-enabled-x28-system-dot-boolean-x29.md

latest1.6 KB
Original Source

SpellCheckBuilder.Enabled(Boolean) Method

Sets whether spell check is activated in the RichEdit control.

Namespace : DevExpress.AspNetCore.RichEdit

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

NuGet Package : DevExpress.AspNetCore.RichEdit

Declaration

csharp
public SpellCheckBuilder Enabled(
    bool value
)

Parameters

NameTypeDescription
valueBoolean

true to enable spell check; otherwise, false.

|

Returns

TypeDescription
SpellCheckBuilder

A builder for spell check settings.

|

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

SpellCheckBuilder Class

SpellCheckBuilder Members

DevExpress.AspNetCore.RichEdit Namespace