Share via


PointerEventArgs Class

Definition

Supplies information about a pointer event that is being raised.

public ref class PointerEventArgs : Microsoft::AspNetCore::Components::Web::MouseEventArgs
public class PointerEventArgs : Microsoft.AspNetCore.Components.Web.MouseEventArgs
type PointerEventArgs = class
    inherit MouseEventArgs
Public Class PointerEventArgs
Inherits MouseEventArgs
Inheritance
PointerEventArgs

Constructors

PointerEventArgs()

Properties

AltKey

true if the alt key was down when the event was fired. false otherwise.

(Inherited from MouseEventArgs)
Button

The button number that was pressed when the mouse event was fired: Left button=0, middle button=1 (if present), right button=2. For mice configured for left handed use in which the button actions are reversed the values are instead read from right to left.

(Inherited from MouseEventArgs)
Buttons

The buttons being pressed when the mouse event was fired: Left button=1, Right button=2, Middle (wheel) button=4, 4th button (typically, "Browser Back" button)=8, 5th button (typically, "Browser Forward" button)=16. If two or more buttons are pressed, returns the logical sum of the values. E.g., if Left button and Right button are pressed, returns 3 (=1 | 2).

(Inherited from MouseEventArgs)
ClientX

The X coordinate of the mouse pointer in local (DOM content) coordinates.

(Inherited from MouseEventArgs)
ClientY

The Y coordinate of the mouse pointer in local (DOM content) coordinates.

(Inherited from MouseEventArgs)
CtrlKey

true if the control key was down when the event was fired. false otherwise.

(Inherited from MouseEventArgs)
Detail

A count of consecutive clicks that happened in a short amount of time, incremented by one.

(Inherited from MouseEventArgs)
Height

The height (magnitude on the Y axis), in CSS pixels, of the contact geometry of the pointer.

IsPrimary

Indicates if the pointer represents the primary pointer of this pointer type.

MetaKey

true if the meta key was down when the event was fired. false otherwise.

(Inherited from MouseEventArgs)
MovementX

The X coordinate of the mouse pointer relative to the position of the last mousemove event.

(Inherited from MouseEventArgs)
MovementY

The Y coordinate of the mouse pointer relative to the position of the last mousemove event.

(Inherited from MouseEventArgs)
OffsetX

The X coordinate of the mouse pointer in relative (Target Element) coordinates.

(Inherited from MouseEventArgs)
OffsetY

The Y coordinate of the mouse pointer in relative (Target Element) coordinates.

(Inherited from MouseEventArgs)
PageX

The X coordinate of the mouse pointer relative to the whole document.

(Inherited from MouseEventArgs)
PageY

The Y coordinate of the mouse pointer relative to the whole document.

(Inherited from MouseEventArgs)
PointerId

A unique identifier for the pointer causing the event.

PointerType

Indicates the device type that caused the event. Must be one of the strings mouse, pen or touch, or an empty string.

Pressure

The normalized pressure of the pointer input in the range of 0 to 1, where 0 and 1 represent the minimum and maximum pressure the hardware is capable of detecting, respectively.

ScreenX

The X coordinate of the mouse pointer in global (screen) coordinates.

(Inherited from MouseEventArgs)
ScreenY

The Y coordinate of the mouse pointer in global (screen) coordinates.

(Inherited from MouseEventArgs)
ShiftKey

true if the shift key was down when the event was fired. false otherwise.

(Inherited from MouseEventArgs)
TiltX

The plane angle (in degrees, in the range of -90 to 90) between the Y-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the Y axis.

TiltY

The plane angle (in degrees, in the range of -90 to 90) between the X-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the X axis.

Type

Gets or sets the type of the event.

(Inherited from MouseEventArgs)
Width

The width (magnitude on the X axis), in CSS pixels, of the contact geometry of the pointer.

Applies to