ZennoLab Assemblies Documentation
FullEmulationMouseDragAndDrop(HtmlElement,HtmlElement) Method
Example 
ZennoLab.CommandCenter Namespace > Tab Class > FullEmulationMouseDragAndDrop Method : FullEmulationMouseDragAndDrop(HtmlElement,HtmlElement) Method

Type: Zennolab.CommandCenter.HtmlElement

The HTMLElement for start drag.

Type: Zennolab.CommandCenter.HtmlElement

The HTMLElement for drop.

Performs the mouse drag and drop from specified element to specified element.
Syntax
public void FullEmulationMouseDragAndDrop( 
   HtmlElement fromHe,
   HtmlElement toHe
)

Parameters

fromHe

Type: Zennolab.CommandCenter.HtmlElement

The HTMLElement for start drag.

toHe

Type: Zennolab.CommandCenter.HtmlElement

The HTMLElement for drop.

Example
The following code example demonstrates uses of the FullEmulationMouseDragAndDrop method.
HtmlElement fromHe = instance.ActiveTab.GetDocumentByAddress("0").FindElementByAttribute("div", "class", "main", "regexp", 0); 
if (fromHe.IsVoid) return -1;
HtmlElement toHe = instance.ActiveTab.GetDocumentByAddress("0").FindElementByAttribute("div", "class", "main", "regexp", 1);
if (to.IsVoid) return -1;
instance.ActiveTab.FullEmulationMouseDragAndDrop(fromHe, toHe);
$fromHe = $instance->ActiveTab->GetDocumentByAddress("0")->FindElementByAttribute("div", "class", "main", "regexp", 0);
if (fromHe->IsVoid) return;
$toHe = $instance->ActiveTab->GetDocumentByAddress("0")->FindElementByAttribute("div", "class", "main", "regexp", 1);
if ($toHe->IsVoid) return;
$instance->ActiveTab->FullEmulationMouseDragAndDrop(fromHe, toHe);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

Tab Class
Tab Members
Overload List
Set mouse full emulation options method
Configure border for scrolling
Mouse move to coordinates method
Mouse move to element method
Mouse move above element method
Performs the mouse wheel event
Mouse click event method
Mouse drag and drop event for specified coordinates
Current mouse position