Class MouseEvent

Class MouseEvent

Namespace: Aspose.Html.Dom.Events
Assembly: Aspose.HTML.dll (25.4.0)

The MouseEvent interface provides specific contextual information associated with Mouse events.

[ComVisible(true)]
[DOMObject]
[DOMName("MouseEvent")]
public class MouseEvent : UIEvent, INotifyPropertyChanged

Inheritance

object DOMObject Event UIEvent MouseEvent

Derived

WheelEvent

Implements

INotifyPropertyChanged

Inherited Members

UIEvent.View , UIEvent.Detail , Event.NonePhase , Event.CapturingPhase , Event.AtTargetPhase , Event.BubblingPhase , Event.InitEvent(string, bool, bool) , Event.PreventDefault() , Event.StopPropagation() , Event.StopImmediatePropagation() , Event.Bubbles , Event.Cancelable , Event.CurrentTarget , Event.EventPhase , Event.Target , Event.TimeStamp , Event.Type , Event.DefaultPrevented , Event.IsTrusted , DOMObject.GetPlatformType() , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

MouseEvent(string)

Initializes a new instance of the Aspose.Html.Dom.Events.MouseEvent class.

[DOMConstructor]
public MouseEvent(string type)

Parameters

type string

The event type.

MouseEvent(string, IDictionary<string, object="">)

Initializes a new instance of the Aspose.Html.Dom.Events.MouseEvent class.

[DOMConstructor]
public MouseEvent(string type, IDictionary<string, object=""> eventInitDict)

Parameters

type string

The event type.

eventInitDict IDictionary < string , object &gt;

The event initialize dictionary.

Properties

AltKey

Refer to the altKey attribute.

[DOMName("altKey")]
public bool AltKey { get; }

Property Value

bool

Button

During mouse events caused by the depression or release of a mouse button, button MUST be used to indicate which pointer device button changed state.

[DOMName("button")]
public short Button { get; }

Property Value

short

Buttons

During any mouse events, buttons MUST be used to indicate which combination of mouse buttons are currently being pressed, expressed as a bitmask.

[DOMName("buttons")]
public ushort Buttons { get; }

Property Value

ushort

ClientX

The horizontal coordinate at which the event occurred relative to the viewport associated with the event.

[DOMName("clientX")]
public long ClientX { get; }

Property Value

long

ClientY

The vertical coordinate at which the event occurred relative to the viewport associated with the event.

[DOMName("clientY")]
public long ClientY { get; }

Property Value

long

CtrlKey

Refer to the ctrlKey attribute.

[DOMName("ctrlKey")]
public bool CtrlKey { get; }

Property Value

bool

MetaKey

Refer to the metaKey attribute.

[DOMName("metaKey")]
public bool MetaKey { get; }

Property Value

bool

RelatedTarget

Used to identify a secondary EventTarget related to a UI event, depending on the type of event.

[DOMName("relatedTarget")]
public EventTarget RelatedTarget { get; }

Property Value

EventTarget

ScreenX

The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.

[DOMName("screenX")]
public long ScreenX { get; }

Property Value

long

ScreenY

The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.

[DOMName("screenY")]
public long ScreenY { get; }

Property Value

long

ShiftKey

Refer to the shiftKey attribute.

[DOMName("shiftKey")]
public bool ShiftKey { get; }

Property Value

bool </string,></string,>

 English