ZennoLab Assemblies Documentation
RiseEvent Method (HtmlElement)
Example 
ZennoLab.CommandCenter Namespace > HtmlElement Class : RiseEvent Method

Type: System.String

The name of the event.

Type: System.String

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

The performs the specified event for html element.
Syntax
public void RiseEvent( 
   string eventName,
   string emulation
)

Parameters

eventName

Type: System.String

The name of the event.

emulation

Type: System.String

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

Remarks

The emulation levels:

"Full" - the full emulation which include the generation of all events such as mouseover, mousemove, mouseout, focus on element and other.
"Middle" - the standard emulation level includes a minimum of actions without additional events.
"None" - the default emulation level without additional events and actions.

Example
The following code example demonstrates uses of the RiseEvent method.
// find element
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// rise event
he.RiseEvent("onclick", "full");
// find element
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// rise event
$he->RiseEvent("onclick", "full");
Requirements

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

See Also

Reference

HtmlElement Class
HtmlElement Members
SetAttribute Method
SetSelectedItems Method
SetValue Method