Redigera

Dela via


DataObjectCopyingEventArgs(IDataObject, Boolean) Constructor

Definition

Initializes a new instance of DataObjectCopyingEventArgs.

public:
 DataObjectCopyingEventArgs(System::Windows::IDataObject ^ dataObject, bool isDragDrop);
public DataObjectCopyingEventArgs (System.Windows.IDataObject dataObject, bool isDragDrop);
new System.Windows.DataObjectCopyingEventArgs : System.Windows.IDataObject * bool -> System.Windows.DataObjectCopyingEventArgs
Public Sub New (dataObject As IDataObject, isDragDrop As Boolean)

Parameters

dataObject
IDataObject

A DataObject containing data ready to be copied.

isDragDrop
Boolean

A Boolean value indicating whether the copy is part of a drag-and-drop operation. true to indicate that the copy is part of a drag-and-drop operation; otherwise, false. If this parameter is set to true, the Copying event fires when dragging is initiated.

Exceptions

Raised when dataObject is null.

Remarks

A DataObjectCopyingEventArgs object is typically created by the application that is initiating the copy operation.

Applies to