ZennoLab Assemblies Documentation
SetValue Method
Example 

Type: System.String

The new value for this html element.

Type: System.String

The emulation level. May be: "None", "Middle" or "Full".

Type: System.Boolean

true if you need use automatic filling standard "select" fields; otherwise false.

Sets the value of the html element.
Syntax
public void SetValue( 
   string value,
   string emulation,
   bool useSelectedItems
)

Parameters

value

Type: System.String

The new value for this html element.

emulation

Type: System.String

The emulation level. May be: "None", "Middle" or "Full".

useSelectedItems

Type: System.Boolean

true if you need use automatic filling standard "select" fields; otherwise false.

Example
The following code example demonstrates uses of the SetValue method.
// find element
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// set value
he.SetValue("true", "Middle", true);
// find element
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// set value
$he->SetValue("true", "Middle", true);
Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

Reference

HtmlElement Class
HtmlElement Members
GetAttribute Method
GetSelectedItems Method
GetValue Method
SetAttribute Method
SetSelectedItems Method

Send Feedback