ImageMan.Net Version 3 Summer 2012 Release
DragDrop Event
See Also  Send Feedback
DTI.ImageMan.Winforms Namespace > ScrollableView Class : DragDrop Event





Glossary Item Box

Syntax

Visual Basic (Declaration) 
<SRDescriptionAttribute("Occurs when a drag-and-drop operation is completed.")>
<SRCategoryAttribute("Drag Drop")>
Public Event DragDrop As System.Windows.Forms.DragEventHandler
Visual Basic (Usage)Copy Code
Dim instance As ScrollableView
Dim handler As System.Windows.Forms.DragEventHandler
 
AddHandler instance.DragDrop, handler
C# 
[SRDescriptionAttribute("Occurs when a drag-and-drop operation is completed.")]
[SRCategoryAttribute("Drag Drop")]
public event System.Windows.Forms.DragEventHandler DragDrop
JScript 
In JScript, you can handle the events defined by another class, but you cannot define your own.
Managed Extensions for C++ 
[SRDescriptionAttribute("Occurs when a drag-and-drop operation is completed.")]
[SRCategoryAttribute("Drag Drop")]
public: __event System.Windows.Forms.DragEventHandler* DragDrop
C++/CLI 
[SRDescriptionAttribute("Occurs when a drag-and-drop operation is completed.")]
[SRCategoryAttribute("Drag Drop")]
public:
event System.Windows.Forms.DragEventHandler^ DragDrop

Event Data

The event handler receives an argument of type System.Windows.Forms.DragEventArgs containing data related to this event. The following DragEventArgs properties provide information specific to this event.

PropertyDescription
AllowedEffect Gets which drag-and-drop operations are allowed by the originator (or source) of the drag event.
Data Gets the System.Windows.Forms.IDataObject that contains the data associated with this event.
Effect Gets or sets the target drop effect in a drag-and-drop operation.
KeyState Gets the current state of the SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons.
X Gets the x-coordinate of the mouse pointer, in screen coordinates.
Y Gets the y-coordinate of the mouse pointer, in screen coordinates.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.