TabControlEventHandler 代理人

定義

表示將處理 Selected 控制項之 DeselectedTabControl 事件的方法。

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

參數

sender
Object

事件的來源。

e
TabControlEventArgs

TabControlEventArgs,其中包含事件資料。

備註

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

擴充方法

GetMethodInfo(Delegate)

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

適用於

另請參閱