Pop-up Menus

  • 2 minutes to read

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.PopupMenuShowing event which allows you to customize context menus by adding or removing items.

Context Menus Overview

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

Customize Context Menus in Code

Handle the RichEditControl.PopupMenuShowing event to customize context menus at runtime. The RichEditMenuType enumeration lists all available context menu types. Refer to the How to: Customize and Hide the Popup Menu topic for details.

See Also