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

Type: System.Boolean

true for getting value using selected items; otherwise, false.

Returns the value of the html element.
Syntax
public string GetValue( 
   bool useSelectedItems
)

Parameters

useSelectedItems

Type: System.Boolean

true for getting value using selected items; otherwise, false.

Return Value

Type: System.String

The element value for the html element.

Example
The following code example demonstrates uses of the GetValue method.
// find html element
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get value
string heValue = he.GetValue(false);
// find html element
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get value
$heValue = $he->GetValue(false);
Requirements

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

See Also

Reference

HtmlElement Class
HtmlElement Members
GetAttribute Method
SetAttribute Method
SetValue Method