Gets the width of the html element.
Syntax
| C# | |
|---|
public int Width {get;} |
Property Value
Type:
System.Int32
The width of the html element in pixels.
Example
The following code example uses the
Width property.
| C# | Copy Code |
|---|
// find element
HtmlElement he = tab.GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
// get width
int width = he.Width; |
| PHP | Copy Code |
|---|
// find element
$he = $tab->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
// get width
$width = $he->Width; |
Requirements
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also