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

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.

Type: System.Boolean

true if you need append value to an existing content; otherwise false.

Sets the value of the html element.
Syntax

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.

append

Type: System.Boolean

true if you need append value to an existing content; 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: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

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