Back to Devexpress

RichEditContextMenuItemNames.AddToDictionary Field

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

latest2.4 KB
Original Source

RichEditContextMenuItemNames.AddToDictionary Field

Gets the Add to Dictionary item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public const string AddToDictionary = "AddToDictionary"

Field Value

TypeDescription
String

The “AddToDictionary” string.

|

Remarks

Use this property to perform the following operations with the Add to Dictionary item:

The Add to Dictionary item is a context menu item in the Spelling Menu. The item passes the underlined word to a delegate method assigned to the AddToDictionaryAction property.

The following code snippet removes the Add to Dictionary item from the Spelling Menu:

razor
<DxRichEdit CustomizeContextMenu="OnCustomizeContextMenu"/>

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

See Also

RichEditContextMenuItemNames Class

RichEditContextMenuItemNames Members

DevExpress.Blazor.RichEdit Namespace