In This Article

SyntaxEditorMenuEventArgs Class

Provides arguments for SyntaxEditor menu request events.

public class SyntaxEditorMenuEventArgs : EventArgs
Inheritance:
object EventArgs object

Properties

HitTestResult

The IHitTestResult that contains hit test results for the pointer location, if the menu was requested via the pointer.

public IHitTestResult? HitTestResult { get; }

Property Value

IHitTestResult

Kind

A SyntaxEditorMenuKind indicating the menu kind.

public SyntaxEditorMenuKind Kind { get; }

Property Value

SyntaxEditorMenuKind

Menu

The IMenu to display, if any.

public IMenu? Menu { get; set; }

Property Value

IMenu

Remarks

This menu object is compatible with IMenuFactory. Instances of this type are typically created by CreateMenu(MenuFactoryMenuOptions?), and the current menu factory can be accessed from Current. Use CreateMenuItem(MenuFactoryMenuItemOptions?) and CreateMenuSeparator() to create new items to be inserted into the menu. Use WrapMenu(ContextMenuStrip) to wrap a native context menu for use with this property. Use TryUnwrapMenu(IMenu, out ContextMenuStrip?) to attempt to unwrap a native context menu from this property.

Inherited Members

Extension Methods