Interface IMouseEvent
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Core.dll
The IMouseEvent interface provides specific contextual information associated with Mouse events.
public interface IMouseEvent : IUiEvent, IEvent
- Inherited Members
Remarks
In the case of nested elements mouse events are always targeted at the most deeply nested element. Ancestors of the targeted element may use bubbling to obtain notification of mouse events which occur within its descendent elements.
Note: To create an instance of the MouseEvent interface, use the feature string "MouseEvent" as the value of the input parameter used with the DocumentEvent.createEvent method.
Properties
- AltGraphKey
true
if the alt-graph (Alt Gr) key modifier is activated.
- AltKey
true
if the alt (alternative) key modifier is activated.
- Button
During mouse events caused by the depression or release of a mouse button, button is used to indicate which mouse button changed state.
- ClientX
The horizontal coordinate at which the event occurred relative to the DOM implementation's client area.
- ClientY
The vertical coordinate at which the event occurred relative to the DOM implementation's client area.
- CtrlKey
true
if the control (Ctrl) key modifier is activated.
- MetaKey
true
if the meta (Meta) key modifier is activated.
- RelatedTarget
Used to identify a secondary EventTarget related to a UI event.
- ScreenX
The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.
- ScreenY
The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.
- ShiftKey
true
if the shift (Shift) key modifier is activated.
Methods
- InitMouseEvent(string, bool, bool, IAbstractView, long, long, long, long, long, bool, bool, bool, bool, ushort, IEventTarget)
The InitMouseEvent method is used to initialize the value of a MouseEvent created using the IDocumentEvent.CreateEvent method.
- InitMouseEventNs(string, string, bool, bool, IAbstractView, long, long, long, long, long, bool, bool, bool, bool, ushort, IEventTarget, bool)
The InitMouseEventNs method is used to initialize the value of a IMouseEvent created using the IDocumentEvent.CreateEvent interface.