SyntaxEditorMenuEventArgs Class
Provides arguments for SyntaxEditor menu request events.
public class SyntaxEditorMenuEventArgs : EventArgs
Properties
HitTestResult
The IHitTestResult that contains hit test results for the pointer location, if the menu was requested via the pointer.
Kind
A SyntaxEditorMenuKind indicating the menu kind.
Menu
The IMenu to display, if any.
public IMenu? Menu { get; set; }
Property Value
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
- EventArgs.Empty
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()