Gtk.Drag.GetData Method
Obtains the data associated with a drag.

Syntax

public static void GetData (Widget widget, Gdk.DragContext context, Gdk.Atom target, uint time_)

Parameters

widget
The widget that will receive the Widget.DragDataReceived event.
context
The drag context.
target
The target (form of the data) to retrieve.
time_
A timestamp for retrieving the data. This will generally be the time received in a Widget.DragMotion or Widget.DragDrop event.

Remarks

When the data is received or the retrieval fails, GTK# will emit a Widget.DragDataReceived event. Failure of the retrieval is indicated by the length field of the selection_data signal parameter being negative. However, when Drag.GetData is called implicitely because the DestDefaults.Drop was set, then the widget will not receive notification of failed drops.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)