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.Forms.Control
The control that initiates the drag operation. - dataObject
- Type: System.Windows.Forms.IDataObject
The data to drag. - allowedEffects
- Type: System.Windows.Forms.DragDropEffects
One of the DragDropEffectsvalues. - image
- Type: System.Drawing.Image
Image to show while dragging. - hotSpot
- Type: System.Drawing.Point
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: System.Single
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: DragDropEffectsA 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
See Also