ZennoLab Assemblies Documentation
GetStylePropertyValue Method
Example 
ZennoLab.CommandCenter Namespace > HtmlElement Class : GetStylePropertyValue Method

Type: System.String

The name of style property.

Returns the text of style property.
Syntax
public string GetStylePropertyValue( 
   string property
)

Parameters

property

Type: System.String

The name of style property.

Return Value

Type: System.String

The text of style property.

Example
The following code example demonstrates uses of the GetStylePropertyValue method.
// find element by attribute
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get attribute value
string propertyText = he.GetStylePropertyValue("display");
// propertyText = "inline-block"
// find element by attribute
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get attribute value
$propertyText = $he->GetStylePropertyValue("display");
// $propertyText = "inline-block"
Requirements

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

See Also

Reference

HtmlElement Class
HtmlElement Members
GetValue Method
SetAttribute Method
SetValue Method