AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.9" />

 MouseEvent

public class MouseEvent : UiEvent
Represents the event args for a mouse event.
public MouseButton Button { get; }

Gets which button has been pressed.

public MouseButtons Buttons { get; }

Gets the currently pressed buttons.

public int ClientX { get; }

Gets the client X coordinates.

public int ClientY { get; }

Gets the client Y coordinates.

public bool IsAltPressed { get; }

Gets if the alt key is pressed.

public bool IsCtrlPressed { get; }

Gets if the control key is pressed.

public bool IsMetaPressed { get; }

Gets if the meta key is pressed.

public bool IsShiftPressed { get; }

Gets if the shift key is pressed.

public int ScreenX { get; }

Gets the screen X coordinates.

public int ScreenY { get; }

Gets the screen Y coordinates.

public IEventTarget Target { get; }

Gets the target of the mouse event.

public MouseEvent()

Creates a new event.

public MouseEvent(string type, bool bubbles, bool cancelable, IWindow view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, MouseButton button, IEventTarget target)

Creates a new event and initializes it.

public MouseEvent(string type, IDictionary<string, object> eventInitDict = null)

Creates a new event and initializes it.

public bool GetModifierState(string key)

Returns the current state of the specified modifier key.

public void Init(string type, bool bubbles, bool cancelable, IWindow view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, MouseButton button, IEventTarget target)

Initializes the mouse event.