[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Expand]RichEditControl Document
   [Expand]Fields
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Printing
    AutoCorrect
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
    Traversing the Document
   [Collapse]Visual Elements
    [Expand]Rich Edit Control
    [Expand]Command UI
     Pop-up Menus
    [Expand]Dialogs
    Services
    Events
    Commands
    HTML Tag Support
   [Expand]Examples
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Pop-up Menus

The Rich Text Editor has several types of context (pop-up) menus which are invoked when the user clicks different visual objects. The RichEditControl provides the RichEditControl.MenuCustomizations property and the RichEditControl.PopupMenuShowing event which allow you to customize context menus by adding or removing items.

Expanded Context Menus Overview

Menu Type Appearance Description
RichEditMenuType.Comment Specifies a context menu which can be invoked by right-clicking a comment.
RichEditMenuType.Field Specifies a context menu which can be invoked by right-clicking a field.
RichEditMenuType.FloatingObject Specifies a context menu which can be invoked by right-clicking a floating object - a picture or a text box.
RichEditMenuType.Footer Specifies a context menu which can be invoked by right-clicking a footer.
RichEditMenuType.Header Specifies a context menu which can be invoked by right-clicking a header.
RichEditMenuType.Hyperlink Specifies a context menu which can be invoked by right-clicking a hyperlink.
RichEditMenuType.InlinePicture Specifies a context menu which can be invoked by right-clicking an inline picture.
RichEditMenuType.TableCell Specifies a context menu which can be invoked by right-clicking a table cell.
RichEditMenuType.Text Specifies a context menu which can be invoked by right-clicking a text in the document.
RichEditMenuType.Text Specifies a context menu which can be invoked by right-clicking a text in the document.
RichEditMenuType.TextBox Specifies a context menu which can be invoked by right-clicking inside a text box.

Expanded Customizing Context Menus in XAML

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T537265.

This example demonstrates how to use the RichEditMenuCustomization.Customizations property to add custom items to the popup menu of the RichEditControl or remove the existing ones. Use the RichEditMenuCustomization.MenuType property to determine the visual element for which the popup menu is invoked.

Expanded Customizing Context Menus Dynamically

Handle the RichEditControl.PopupMenuShowing event to customize context menus at runtime.

Is this topic helpful?​​​​​​​