PopupEventHandler 代理人

定義

代表處理 Popup 類別事件 ToolTip 的方法。

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

參數

sender
Object

事件的 來源。

e
PopupEventArgs

關於活動的資訊。

備註

Popup該事件可以被取消,因為 PopupEventArgs 由 衍生出CancelEventArgs

當你建立 PopupEventHandler 代理人時,你就能確定處理事件的方法。 要將事件與你的事件處理器關聯,請將該代理的實例加入事件中。 事件處理程序會在事件發生時被呼叫,除非你移除代理。 欲了解更多關於事件處理代表的資訊,請參閱 「處理與提升事件」。

擴充方法

名稱 Description
GetMethodInfo(Delegate)

取得一個代表指定代理所代表方法的物件。

適用於

另請參閱