The WPF.TextContextMenuEventArgs class provides data for the WPF.TextControl.TextContextMenuOpening event. This event occurs, immediately before a built-in context menu will be opened. A TextControl provides context menus for different parts of a document. The ContextMenuLocation property informs for which part the menu will be opened. The pre-defined menu provided with the TextContextMenu property can be altered or expanded.

Syntax

public class TextContextMenuEventArgs: CancelEventArgs
Public Class TextContextMenuEventArgs
  Inherits EventArgs

Introduced: X9.

Properties

Property Description
ContextMenuLocation Gets the location in the document for which the context menu will be opened.
HorizontalOffset Gets the horizontal distance between the top-left corner of the screen and the location where the menu is displayed.
TextContextMenu Gets or sets the context menu, which will be shown.
VerticalOffset Gets the vertical distance between the top-left corner of the screen and the location where the menu is displayed.