DataObjectCopyingEventHandler 委托

定义

表示将处理 Copying 附加事件的方法。Represents a method that will handle the Copying attached event.

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

事件处理程序所附加到的对象。The object where the event handler is attached.

e
DataObjectCopyingEventArgs

事件数据。The event data.

继承
DataObjectCopyingEventHandler

注解

Copying当复制操作完成将所选内容转换为所有指定的数据格式, 并将所有数据格式存储在关联的数据对象中, 并已准备好将数据对象置于系统剪贴板或开始拖动操作。The Copying attached event occurs when a copy operation has finished converting the selected content into all specified data formats, has stored all data formats in the associated data object, and is ready to put the data object on the system clipboard or to begin a drag operation.

Copying附加事件处理程序方法通常检查作为事件参数传入的数据对象的内容, 并对该数据对象执行自定义操作, 例如添加、删除或修改数据格式。A Copying attached event handler method typically inspects the contents of the data object passed in as an event argument, and performs custom operations on the data object, such as adding, removing, or modifying data formats. 此处理程序方法还可以通过调用CancelCommand来取消复制事件。This handler method may also cancel the copying event by calling CancelCommand.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于