Context Menus in the Rich Text Editor
- 2 minutes to read
The WPF Rich Text Editor supports several types of context menus. These menus are invoked when a user clicks different document elements (for example, a header or footer, document text, picture or table).
The following table lists the available context menu types:
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 a 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.TableCell | Specifies a context menu invoked for a table cell. | |
RichEditMenuType.Text | Specifies a context menu invoked for text. | |
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
Use the RichEditControl.MenuCustomizations property or handle the RichEditControl.PopupMenuShowing event to customize the Rich Text Editor’s context menus. You can add, modify or remove menu items. See the following help topic for more information: Customize Context Menus for the Rich Text Editor.