Back to Devexpress

RichEditContextMenuItemNames.SpellingMenu Field

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditcontextmenuitemnames.md

latest3.4 KB
Original Source

RichEditContextMenuItemNames.SpellingMenu Field

Gets the Spelling Menu item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public const string SpellingMenu = "SpellingMenu"

Field Value

TypeDescription
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:

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 :

razor
<DxRichEdit CustomizeContextMenu="OnCustomizeContextMenu"/>

@code {
    void OnCustomizeContextMenu(IContextMenuItemCollection items) {
        IContextMenuItem spellingMenu = items[RichEditContextMenuItemNames.SpellingMenu];
        if(spellingMenu != null)
            spellingMenu.Items.Clear();
    }
}

See Also

RichEditContextMenuItemNames Class

RichEditContextMenuItemNames Members

DevExpress.Blazor.RichEdit Namespace