Back to Devexpress

RichEditContextMenuItemNames.ToggleFieldCodes Field

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

latest1.8 KB
Original Source

RichEditContextMenuItemNames.ToggleFieldCodes Field

Gets the Toggle Field Codes item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public const string ToggleFieldCodes = "ToggleFieldCodes"

Field Value

TypeDescription
String

The “ToggleFieldCodes” string.

|

Remarks

Use this property to perform the following operations with the Update Field item:

The Toggle Field Codes item is a context menu item that displays the current field as the field code.

The following code snippet removes the Toggle Field Codes item from the context menu:

razor
<DxRichEdit CustomizeContextMenu="OnCustomizeContextMenu"/>

@code {
    void OnCustomizeContextMenu(IContextMenuItemCollection items) {
        items.Remove(RichEditContextMenuItemNames.ToggleFieldCodes);
    }
}

See Also

RichEditContextMenuItemNames Class

RichEditContextMenuItemNames Members

DevExpress.Blazor.RichEdit Namespace