Intersoft WebDesktop Documentation
OnDragDrop Method
See Also  Send Feedback
ISNet.WebUI.WebDesktop Namespace > WebDragDropExtender Class : OnDragDrop Method


dragControl
Gets the ISDragableObject instance, which is the object being dragged by the user.
data
Gets or sets the data associated with a drag control.
effect
Gets or sets the default effect associated with a drag control.
effectText
Gets or sets the effect text (tool tip) that will be displayed when the drag control is over a valid drop target.
keyState
Gets or sets the key state in the current context of drag operation. Key state can be combination of Ctrl, Alt, and Shift.
allowedEffects
Gets or sets the allowed effects specified in DragSettings.AllowedEffects of the WebDragDropExtender control.
x
Gets the X point of mouse cursor relative to the document.
y
Gets the Y point of mouse cursor relative to the document.

Glossary Item Box

Gets or sets the javascript function to be invoked when a valid drag source is dropped to a valid drop target.

Syntax

Visual Basic (Declaration) 
Public Overridable Function OnDragDrop( _
   ByVal dragControl As WebDragControl, _
   ByVal data As Object, _
   ByVal effect As SpecificDragObjectEffects, _
   ByVal effectText As String, _
   ByVal keyState As Integer, _
   ByVal allowedEffects As DragDropEffects, _
   ByVal x As Integer, _
   ByVal y As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As WebDragDropExtender
Dim dragControl As WebDragControl
Dim data As Object
Dim effect As SpecificDragObjectEffects
Dim effectText As String
Dim keyState As Integer
Dim allowedEffects As DragDropEffects
Dim x As Integer
Dim y As Integer
Dim value As Boolean
 
value = instance.OnDragDrop(dragControl, data, effect, effectText, keyState, allowedEffects, x, y)
C# 
public virtual bool OnDragDrop( 
   WebDragControl dragControl,
   object data,
   SpecificDragObjectEffects effect,
   string effectText,
   int keyState,
   DragDropEffects allowedEffects,
   int x,
   int y
)

Parameters

dragControl
Gets the ISDragableObject instance, which is the object being dragged by the user.
data
Gets or sets the data associated with a drag control.
effect
Gets or sets the default effect associated with a drag control.
effectText
Gets or sets the effect text (tool tip) that will be displayed when the drag control is over a valid drop target.
keyState
Gets or sets the key state in the current context of drag operation. Key state can be combination of Ctrl, Alt, and Shift.
allowedEffects
Gets or sets the allowed effects specified in DragSettings.AllowedEffects of the WebDragDropExtender control.
x
Gets the X point of mouse cursor relative to the document.
y
Gets the Y point of mouse cursor relative to the document.

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

© 2012 Intersoft Solutions Corp. All Rights Reserved.