blazor-devexpress-dot-blazor-dot-richedit-dot-richeditcontextmenuitemnames.md
Gets the Spelling Menu item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public const string SpellingMenu = "SpellingMenu"
| Type | Description |
|---|---|
| String |
The “SpellingMenu” string.
|
Use this property to perform the following operations with the Spelling Menu item:
The Spelling Menu item is a context menu item that contains the following sub-menu items:
SuggestionThe item replaces the misspelled word with the word that the spell checker suggests. The number of suggestions is specified by the MaxSuggestionCount property.No SuggestionsThe item indicates that the spell checker has no spelling suggestion for the underlined word.Ignore MisspellingThe item removes the wavy red line for the misspelled word at the current position in the document.Ignore All MisspellingsThe item removes wavy red lines for all instances of the current misspelled word in the active sub-document.Add to DictionaryThe item passes the underlined word to a delegate method assigned to the AddToDictionaryAction property.
The following code snippet removes sub-menu items from the Spelling Menu :
<DxRichEdit CustomizeContextMenu="OnCustomizeContextMenu"/>
@code {
void OnCustomizeContextMenu(IContextMenuItemCollection items) {
IContextMenuItem spellingMenu = items[RichEditContextMenuItemNames.SpellingMenu];
if(spellingMenu != null)
spellingMenu.Items.Clear();
}
}
See Also
RichEditContextMenuItemNames Class