In This Article

PasteDragDropEventArgs Class

Provides arguments for the PasteDragDrop event.

public class PasteDragDropEventArgs : EventArgs
Inheritance:
object EventArgs object

Constructors

PasteDragDropEventArgs(PasteDragDropAction, IDataStore, string?)

Initializes an instance of the 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 an instance of the 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

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

public PasteDragDropAction Action { get; }

Property Value

PasteDragDropAction

DataStore

The IDataStore that contains the data.

public IDataStore DataStore { get; }

Property Value

IDataStore

DragEventArgs

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

public DragEventArgs? DragEventArgs { get; }

Property Value

DragEventArgs

Remarks

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

Text

The text associated with the DataStore or drag/drop.

public string? Text { get; set; }

Property Value

string

Remarks

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

Inherited Members

Extension Methods