Clear Up
SharpKit Reference

HtmlDomEventArgs Class

Represents the state of an event, such as the element in which the event occurred, the state of the keyboard keys, the location of the mouse, and the state of the mouse buttons.

Namespace: SharpKit.Html4

Base Types

System.Object

Constructors

Name Description
HtmlDomEventArgs()

Properties

Name Description
altKey Sets or retrieves a value that indicates the state of the ALT key.
button Sets or retrieves the mouse button pressed by the user. Values:
    Value Description
  • 0 Default. No button is pressed.
  • 1 Left button is pressed.
  • 2 Right button is pressed.
  • 3 Left and right buttons are both pressed.
  • 4 Middle button is pressed.
  • 5 Left and middle buttons both are pressed.
  • 6 Right and middle buttons are both pressed.
  • 7 All three buttons are pressed.
cancelBubble Sets or retrieves whether the current event should bubble up the hierarchy of event handlers.
clientX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
clientY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
ctrlLeft Retrieves the state of the left CTRL key.
ctrlRight Retrieves the state of the right CTRL key.
offsetX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the object firing the event.
offsetY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the object firing the event.
pageX Returns the horizontal coordinate of the event relative to whole document.
pageY Returns the vertical coordinate of the event relative to the whole document.
repeat Retrieves whether the onkeydown event is being repeated.
returnValue Sets or retrieves the return value from the event.
screenX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the user's screen.
screenY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the user's screen.
shiftLeft Retrieves the state of the left SHIFT key.
shiftRight Retrieves the state of the right SHIFT key.
srcElement Sets or retrieves the object that fired the event.
type Sets or retrieves the event name from the event object.
wheelDelta Retrieves the distance and direction the wheel button has rolled.
x Sets or retrieves the x-coordinate, in pixels, of the mouse pointer's position relative to a relatively positioned parent element.
y Sets or retrieves the y-coordinate, in pixels, of the mouse pointer's position relative to a relatively positioned parent element.

Fields

Name Description
ctrlKey Sets or retrieves the state of the CTRL key.
keyCode Sets or retrieves the Unicode key code associated with the key that caused the event.
propertyName Sets or retrieves the name of the property that changes on the object.
shiftKey Sets or retrieves the state of the SHIFT key.
© Copyright 2005-2011 SharpKit. All rights reserved.