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: 65.0.19510.3242 (65.0.19510.3242)
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: DragDropEffectsA DragDropEffects value that represents the final result.
Version Information
Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also