DataObjectCopyingEventHandler 代理人

定義

表示將處理 Copying 附加事件的方法。

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

參數

sender
Object

附加事件處理常式的物件。

e
DataObjectCopyingEventArgs

事件資料。

備註

Copying 複製作業完成將選取的內容轉換成所有指定的資料格式、已將所有資料格式儲存在相關聯的資料物件中,並準備好將資料物件放在系統剪貼簿上或開始拖曳作業時,就會發生附加事件。

Copying附加事件處理常式方法通常會檢查以事件引數的形式傳入的資料物件內容,並在資料物件上執行自訂作業,例如新增、移除或修改資料格式。 這個處理常式方法也可以呼叫 CancelCommand 來取消複製事件。

擴充方法

GetMethodInfo(Delegate)

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

適用於