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 | 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 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.Text | Specifies a context menu which can be invoked by right-clicking a text in the document. | |
RichEditMenuType.TableCell | Specifies a context menu which can be invoked by right-clicking a table cell. | |
RichEditMenuType.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