In This Article

PasteDragDropEventArgs Class

Provides arguments for the PasteDragDrop event.

public class PasteDragDropEventArgs : RoutedEventArgs
Inheritance:
Object EventArgs RoutedEventArgs Object

Constructors

PasteDragDropEventArgs(PasteDragDropAction, IDataStore, String)

Initializes a new instance of the PasteDragDropEventArgs class.

public PasteDragDropEventArgs(PasteDragDropAction action, IDataStore dataStore, string text)
Parameter Type Description
action PasteDragDropAction

The PasteDragDropAction describing the action that is the source of the event.

dataStore IDataStore

The IDataStore that contains the data set to the clipboard.

text String

The text associated with the IDataStore.

PasteDragDropEventArgs(PasteDragDropAction, DragEventArgs, String)

Initializes a new instance of the PasteDragDropEventArgs class.

public PasteDragDropEventArgs(PasteDragDropAction action, DragEventArgs dragEventArgs, string text)
Parameter Type Description
action PasteDragDropAction

The PasteDragDropAction describing the action that is the source of the event.

dragEventArgs DragEventArgs

The DragEventArgs that caused this event.

text String

The text associated with the drag/drop.

Properties

Action

Gets the PasteDragDropAction describing the action that is the source of the event.

public PasteDragDropAction Action { get; }

Property Value

PasteDragDropAction:

The PasteDragDropAction describing the action that is the source of the event.

DataStore

Gets the IDataStore that contains the data.

public IDataStore DataStore { get; }

Property Value

IDataStore:

The IDataStore that contains the data.

DragEventArgs

Gets the DragEventArgs that caused this event, if this event was caused by a drag event.

public DragEventArgs DragEventArgs { get; }

Property Value

DragEventArgs:

The DragEventArgs that caused this event.

Remarks

If this event was not caused by a drag operation, this property returns null.

Text

Gets or sets the text associated with the DataStore or drag/drop.

public string Text { get; set; }

Property Value

String:

The text associated with the DataStore or drag/drop.

Remarks

Set this value to null to indicate that no text is associated with the DataStore or drag/drop.

Inherited Members