RichEditContextMenuItemNames.IgnoreMisspelling Field
Gets the Ignore Misspelling item’s name.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.1.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public const string IgnoreMisspelling = "IgnoreMisspelling"
Field Value
Type | Description |
---|---|
String | The “IgnoreMisspelling” string. |
Remarks
Use this property to perform the following operations with the Ignore Misspelling item:
- Access the item’s properties
- Add/remove the item to/from a menu
- Remove the item from the Spelling Menu
The Ignore Misspelling item is a context menu item in the Spelling Menu. The item removes the wavy red line for the misspelled word at the current position in the document.
The following code snippet removes the Ignore Misspelling item from the Spelling Menu:
<DxRichEdit CustomizeContextMenu="OnCustomizeContextMenu"/>
@code {
void OnCustomizeContextMenu(IContextMenuItemCollection items) {
IContextMenuItem spellingMenu = items[RichEditContextMenuItemNames.SpellingMenu];
if(spellingMenu != null)
spellingMenu.Items.Remove(RichEditContextMenuItemNames.IgnoreMisspelling);
}
}
See Also