Pop-up Menus in Rich Text Editor
- 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.
Context Menus Overview
Menu Type | Appearance | Description |
---|---|---|
RichEditMenuType.Comment | Specifies a context menu invoked for a comment. | |
RichEditMenuType.Field | Specifies a context menu invoked for a field. | |
RichEditMenuType.FloatingObject | Specifies a context menu invoked for a floating object - a picture or text box. | |
RichEditMenuType.Footer | Specifies a context menu invoked for a footer. | |
RichEditMenuType.Header | Specifies a context menu invoked for a header. | |
RichEditMenuType.Hyperlink | Specifies a context menu invoked for a hyperlink. | |
RichEditMenuType.InlinePicture | Specifies a context menu invoked for an inline picture. | |
RichEditMenuType.Text | Specifies a context menu invoked for a text. | |
RichEditMenuType.TableCell | Specifies a context menu invoked for a table cell. | |
RichEditMenuType.TextBox | Specifies a context menu invoked for a text box. | |
RichEditMenuType.Footnote | Specifies a context menu invoked for a footnote. | |
RichEditMenuType.Endnote | Specifies a context menu invoked for an endnote. |
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 following topic for details:
See Also