ZennoLab Assemblies Documentation
Width Property
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElement Class : Width Property

Glossary Item Box

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;
PHPCopy 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

© 2014 All Rights Reserved.