DataGridViewCellMouseEventHandler 代理人

定義

表示將處理 DataGridView 所引發的滑鼠相關事件之方法。

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

參數

sender
Object

事件的來源。

備註

委派 DataGridViewCellMouseEventHandler 會處理下列 DataGridView 事件:

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

擴充方法

GetMethodInfo(Delegate)

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

適用於

另請參閱