ZennoLab Assemblies Documentation
DisplacementInDocument Property
Example 
ZennoLab.CommandCenter Namespace > HtmlElement Class : DisplacementInDocument Property
Gets the displacement of the upper left corner relative to the parent document.
Syntax
public Point DisplacementInDocument {get;}

Property Value

Type: System.Drawing.Point

The point of the upper left corner.

Remarks
This property displays the coordinates relative to the parent document. These coordinates are not always equal DisplacementInTabWindow.
Example
The following code example uses the DisplacementInDocument property.
using System.Drawing;
...
// find element
HtmlElement he = tab.GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get displacement in document
Point point = he.DisplacementInDocument;
use System\Drawing;
...
// find element
$he = $tab->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get displacement in document
$point = $he->DisplacementInDocument;
Requirements

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

See Also

Reference

HtmlElement Class
HtmlElement Members
DisplacementInTabWindow Property
Height Property
Width Property