Back to Devexpress

ToolbarCheckSpellingButton Class

aspnet-devexpress-dot-web-dot-aspxhtmleditor-6f7fa717.md

latest3.7 KB
Original Source

ToolbarCheckSpellingButton Class

A default toolbar button that allows checking the spelling of the content within the design view area.

Namespace : DevExpress.Web.ASPxHtmlEditor

Assembly : DevExpress.Web.ASPxHtmlEditor.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class ToolbarCheckSpellingButton :
    HtmlEditorToolbarItem
vb
Public Class ToolbarCheckSpellingButton
    Inherits HtmlEditorToolbarItem

Remarks

The ASPxHtmlEditor allows end-users to check the spelling of its content by using the Check Spelling button ( ToolbarCheckSpellingButton ). Clicking the Check Spelling button invokes the Spell Checking Dialog.

The Check Spelling button’s functionality can be customized by using the ASPxHtmlEditor.SettingsSpellChecker property.

You can add the Check Spelling button to toolbars by using either the ASPxHtmlEditor designer at design time, or programmatically.

csharp
protected void Page_Load(object sender, EventArgs e) {
    HtmlEditorToolbar stToolbar1 = HtmlEditorToolbar.CreateStandardToolbar1();
    ToolbarCheckSpellingButton spellButton = new ToolbarCheckSpellingButton();
    stToolbar1.Items.Add(spellButton);
    ASPxHtmlEditor1.Toolbars.Add(stToolbar1);
}
aspx
<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server">
    <Toolbars>
        <dx:HtmlEditorToolbar Name="StandardToolbar1">
            <Items>
                <dx:ToolbarCheckSpellingButton BeginGroup="True">
                </dx:ToolbarCheckSpellingButton>
            </Items>
        </dx:HtmlEditorToolbar>
    </Toolbars>
</dx:ASPxHtmlEditor>

Important

If ASPxHtmlEditor contains the Check Spelling button, the built-in browser spell check feature is disabled.

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Object StateManager CollectionItem ToolbarItemBase HtmlEditorToolbarItem ToolbarCheckSpellingButton

See Also

ToolbarCheckSpellingButton Members

HTML Editor

DevExpress.Web.ASPxHtmlEditor Namespace