DragDropHelperDoDragDropWithImage Method TIBCO Spotfire 7.6 API Reference
Performs drag and drop while displaying a provided image that is moved with the cursor.

Namespace: Spotfire.Dxp.Forms.Components
Assembly: Spotfire.Dxp.Forms (in Spotfire.Dxp.Forms.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
Syntax

C#
public static DragDropEffects DoDragDropWithImage(
	Control sourceControl,
	IDataObject dataObject,
	DragDropEffects allowedEffects,
	Image image,
	Point hotSpot,
	float opacity
)

Parameters

sourceControl
Type: System.Windows.FormsControl
The control that initiates the drag operation.
dataObject
Type: System.Windows.FormsIDataObject
The data to drag.
allowedEffects
Type: System.Windows.FormsDragDropEffects
One of the DragDropEffectsvalues.
image
Type: System.DrawingImage
Image to show while dragging.
hotSpot
Type: System.DrawingPoint
The coordinate of the hot spot in image coordinates. This is the point where the cursor will be. This point does not need to be within the image. For instance, if both X and Y are negative, the image will be displayed below and to the right of the cursor.
opacity
Type: SystemSingle
Overall opacity to use for the image. Valid values are in the range [0, 1.0], where 1.0 means totally opaque.

Return Value

Type: DragDropEffects
A DragDropEffects value that represents the final result.
Version Information

Supported in: 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference