Click or drag to resize

IMouseEvent Interface

Represents a mouse event and provides an access to specific mouse event data.

This event occurs when a user performs an action with a pointing device (such as a mouse), for example moves the mouse or clicks a mouse button.

Namespace:  DotNetBrowser.Dom.Events
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.4
Syntax
C#
public interface IMouseEvent : IUiKeyEventModifier, 
	IEvent, IAutoDisposable

The IMouseEvent type exposes the following members.

Properties
  NameDescription
Public propertyBubbles
Indicates whether an event is a bubbling event.
(Inherited from IEvent.)
Public propertyButton
Gets the button which was pressed on the mouse to trigger the event.
Public propertyCancelable
Indicates whether an event can have its default action prevented.
(Inherited from IEvent.)
Public propertyClickCount
Gets the click count.
Public propertyClientLocation
Gets the location of the mouse cursor in the local (DOM content) coordinate system at the time the event occurred.
Public propertyCurrentTarget
Gets the IEventTarget whose event listeners are currently being processed.
(Inherited from IEvent.)
Public propertyEventPhase
Gets the phase of event flow.
(Inherited from IEvent.)
Public propertyIsDisposed
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.)
Public propertyKeyModifiers
Gets the key modifiers that are applied to the event.
(Inherited from IUiKeyEventModifier.)
Public propertyOffsetLocation
Gets the location of the mouse cursor in the component's coordinate system at the time the event occurred.
Public propertyScreenLocation
Gets the location of the mouse cursor in the screen's coordinate system at the time the event occurred.
Public propertyTarget
Gets the IEventTarget to which the event was originally dispatched.
(Inherited from IEvent.)
Public propertyType
Gets the type of this DOM event.
(Inherited from IEvent.)
Top
Methods
  NameDescription
Public methodPreventDefault
Cancels the event if it is cancelable, without stopping further propagation of the event.
(Inherited from IEvent.)
Public methodStopPropagation
Prevents further propagation of the current event.
(Inherited from IEvent.)
Top
Events
  NameDescription
Public eventDisposed
Occurs when the object has been disposed.
(Inherited from IAutoDisposable.)
Top
See Also