ASPxHtmlEditor.SettingsSpellChecker Property
Provides access to the spelling settings for checking the ASPxHtmlEditor’s content.
Namespace: DevExpress.Web.ASPxHtmlEditor
Assembly: DevExpress.Web.ASPxHtmlEditor.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
ASPxHtmlEditorSpellCheckerSettings | A ASPxHtmlEditorSpellCheckerSettings object that holds the spelling options. |
Remarks
Use the SettingsSpellChecker property to get access to basic spelling options, such as ASPxHtmlEditorSpellCheckerSettings.Culture, ASPxHtmlEditorSpellCheckerSettings.Dictionaries, ASPxHtmlEditorSpellCheckerSettings.LevenshteinDistance, ASPxHtmlEditorSpellCheckerSettings.SettingsSpelling, ASPxHtmlEditorSpellCheckerSettings.SettingsText, ASPxHtmlEditorSpellCheckerSettings.SuggestionCount.
Example
The following example demonstrates how to force the integrated ASPxSpellChecker to check the text edited within the ASPxHtmlEditor.
Spell checking is performed based upon the selected ISpell dictionary, culture and grammar. These settings are defined by using the ASPxHtmlEditor.SettingsSpellChecker
property. In this example, the spell checking is started by clicking the default Check Spelling button in the first standard toolbar.
<dxhe:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server">
<SettingsSpellChecker Culture="English (United States)">
<Dictionaries>
<dxwsc:ASPxSpellCheckerISpellDictionary
AlphabetPath="~/Dictionary/EnglishAlphabet.txt"
CacheKey="ispellDic" Culture="English (United States)"
DictionaryPath="~/Dictionary/american.xlg"
EncodingName="Western European (Windows)"
GrammarPath="~/Dictionary/english.aff" />
</Dictionaries>
</SettingsSpellChecker>
</dxhe:ASPxHtmlEditor>