ClassMouseEvent
Class representing a scriptable mouse event that can be sent to a browser window.
Definition
Namespace:ArtOfTest.WebAii.Javascript
Assembly:ArtOfTest.WebAii.dll
Syntax:
[DataContract]
public class MouseEvent : ScriptUIEvent
Inheritance: objectScriptEventScriptUIEventMouseEvent
Inherited Members
Constructors
MouseEvent(string)
Creates a mouse event of the given type, with other parameters set to default values
Declaration
public MouseEvent(string type)
Parameters
type
The type of the event
Properties
Button
Gets / Sets the mouse button of this event.
Declaration
[DataMember(Name = "button")]
public MouseButton Button { get; set; }
Property Value
MouseButton
RelatedTargetLocator
Gets / Sets the related target control
Declaration
[DataMember(Name = "relatedTarget")]
public string RelatedTargetLocator { get; set; }
Property Value
ScreenX
Gets / Sets the horizontal position of the cursor for mouse events
Declaration
[DataMember(Name = "screenX")]
public int ScreenX { get; set; }
Property Value
Methods
SetRelatedTarget(Element)
Set the related target for this event to an element, with a locator based on the tag name / tag index
Declaration
public void SetRelatedTarget(Element e)
Parameters
e
The related target element
SetRelatedTarget(string)
Set the related target for this event to an HtmlControl, using the control's ClientSideLocator.
Declaration
public void SetRelatedTarget(string locator)
Parameters
locator
The related target control.