System.Windows.Forms.HtmlElement.Drag Event

Occurs when the user drags text to various locations.

Syntax

public event HtmlElementEventHandler Drag

Remarks

This event occurs when text is dragged to the following locations:

You can cancel the default action for a HtmlElement.Drag event on an element by setting the HtmlElementEventArgs.ReturnValue property of the System.Windows.Forms.HtmlElementEventArgs class to true.

A HtmlElement.Drag event on an element will also occur on that element's parent elements and on the System.Windows.Forms.HtmlDocument class itself, unless you set the HtmlElementEventArgs.BubbleEvent property of the System.Windows.Forms.HtmlElementEventArgs class to true.

For more information about the difference between canceling event bubbling and canceling the default action on an event, see tp://msdn.microsoft.com/en-us/library/ms533022.aspx.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0