RichEditContextMenuItemNames.SpellingMenu Field
Gets the Spelling Menu item’s name.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.1.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public const string SpellingMenu = "SpellingMenu"
Field Value
Type | Description |
---|---|
String | The “SpellingMenu” string. |
Remarks
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:
- Suggestion
- The item replaces the misspelled word with the word that the spell checker suggests. The number of suggestions is specified by the MaxSuggestionCount property.
- No Suggestions
- The item indicates that the spell checker has no spelling suggestion for the underlined word.
- Ignore Misspelling
- The item removes the wavy red line for the misspelled word at the current position in the document.
- Ignore All Misspellings
- The item removes wavy red lines for all instances of the current misspelled word in the active sub-document.
- Add to Dictionary
- The 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