ContextMenuEventHandler ContextMenuEventHandler ContextMenuEventHandler ContextMenuEventHandler Delegate

定义

表示将处理 ContextMenuOpeningContextMenuClosing 路由事件,以及等效的 ContentElement 事件的方法。Represents the method that will handle the ContextMenuOpening and ContextMenuClosing routed events, as well as equivalent ContentElement events.

public delegate void ContextMenuEventHandler(System::Object ^ sender, ContextMenuEventArgs ^ e);
public delegate void ContextMenuEventHandler(object sender, ContextMenuEventArgs e);
type ContextMenuEventHandler = delegate of obj * ContextMenuEventArgs -> unit
Public Delegate Sub ContextMenuEventHandler(sender As Object, e As ContextMenuEventArgs)

参数

sender
Object Object Object Object

事件处理程序所附加到的对象。The object where the event handler is attached.

继承
ContextMenuEventHandlerContextMenuEventHandlerContextMenuEventHandlerContextMenuEventHandler

扩展方法

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于

另请参阅