TabControlCancelEventHandler 代理人

定義

表示將處理 Selecting 控制項之 DeselectingTabControl 事件的方法。

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

參數

sender
Object

事件的來源。

e
TabControlCancelEventArgs

TabControlCancelEventArgs,其中包含事件資料。

備註

建立 TabControlCancelEventHandler 委派時,必須識別處理事件的方法。 若要使事件與您的事件處理常式產生關聯,請將委派的執行個體 (Instance) 加入至事件。 除非您移除委派,否則每當事件發生時就會呼叫事件處理常式。 如需事件處理常式委派的詳細資訊,請參閱 處理和引發事件

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於

另請參閱