SpreadsheetGear 2012
DragEnter Event (WorkbookView)






Syntax
'Declaration
 
<SRDescriptionAttribute("Occurs when the mouse drags an item into the client area for this Control.")>
<SRCategoryAttribute("Drag Drop")>
Public Event DragEnter As System.Windows.Forms.DragEventHandler
'Usage
 
Dim instance As WorkbookView
Dim handler As System.Windows.Forms.DragEventHandler
 
AddHandler instance.DragEnter, handler
[SRDescription("Occurs when the mouse drags an item into the client area for this Control.")]
[SRCategory("Drag Drop")]
public event System.Windows.Forms.DragEventHandler DragEnter
public event DragEnter: System.Windows.Forms.DragEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
[SRDescription("Occurs when the mouse drags an item into the client area for this Control.")]
[SRCategory("Drag Drop")]
public: __event System.Windows.Forms.DragEventHandler* DragEnter
[SRDescription("Occurs when the mouse drags an item into the client area for this Control.")]
[SRCategory("Drag Drop")]
public:
event System.Windows.Forms.DragEventHandler^ DragEnter
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
AllowedEffectGets which drag-and-drop operations are allowed by the originator (or source) of the drag event.  
DataGets the System.Windows.Forms.IDataObject that contains the data associated with this event.  
EffectGets or sets the target drop effect in a drag-and-drop operation.  
KeyStateGets the current state of the SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons.  
XGets the x-coordinate of the mouse pointer, in screen coordinates.  
YGets 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

Reference

WorkbookView Class
WorkbookView Members

Send Feedback