Export (0) Print
Expand All

HtmlEventArgs Class

Silverlight

Provides event details to event handlers.

System.Object
  System.EventArgs
    System.Windows.Browser.HtmlEventArgs

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

'Declaration
Public Class HtmlEventArgs _
	Inherits EventArgs

The HtmlEventArgs type exposes the following members.

  NameDescription
Public propertyAltKeyGets the state of the ALT key when the event was raised.
Public propertyCharacterCodeGets the integer Unicode value of a key that was pressed.
Public propertyClientXGets the x-coordinate mouse position in pixels relative to the client area of the window.
Public propertyClientYGets the y-coordinate mouse position in pixels relative to the client area of the window.
Public propertyCtrlKeyGets the state of the CTRL key when the event was raised.
Public propertyEventObjectGets the underlying HTML event object.
Public propertyEventTypeGets the name of the event raised by the browser.
Public propertyKeyCodeGets the integer Unicode value of a key that is associated with a keyboard event other than "keypress".
Public propertyMouseButtonGets the mouse buttons that were clicked at the time the event was raised.
Public propertyOffsetXGets the x-coordinate mouse position in pixels relative to the HTML object that raised the event.
Public propertyOffsetYGets the y-coordinate mouse position in pixels relative to the HTML object that raised the event.
Public propertyScreenXGets the x-coordinate mouse position in pixels relative to the user's screen.
Public propertyScreenYGets the y-coordinate mouse position in pixels relative to the user's screen.
Public propertyShiftKeyGets the state of the SHIFT key when the event was raised.
Public propertySourceGets a reference to the Document Object Model (DOM) element or object that raised the event.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodPreventDefaultSpecifies that the associated Document Object Model (DOM) element should not perform the default action for the current event.
Public methodStopPropagationSpecifies that the event should not bubble up the Document Object Model (DOM) hierarchy.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

You typically specify an EventHandler<HtmlEventArgs> when you require the additional event details that are available from HtmlEventArgs. Because of the overhead in fetching this information from the browser, you can instead use an EventHandler object for cases where you do not need the Document Object Model (DOM) information as part of event processing.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft