PointerEventArgs Class

Definition

Contains the arguments returned by the last pointer event.

public ref class PointerEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PointerEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PointerEventArgs
Public NotInheritable Class PointerEventArgs
Inheritance
PointerEventArgs
Attributes
Windows.Foundation.Metadata.ContractVersionAttribute Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Remarks

Note

This class is not agile, which means its functions and properties may only be accessed on the UI thread from where it was retrieved. Access on a different thread will return RPC_E_WRONG_THREAD or the equivalent projected error type.

Properties

CurrentPoint

Gets the pointer data of the last pointer event.

Handled

Gets or sets whether the pointer event was handled.

KeyModifiers

Gets the keyboard key or keys used to modify the pointer input, such as the "Ctrl" key when pressed in conjunction with another key, as in Ctrl+C.

Methods

GetIntermediatePoints()

Retrieves the pointer data for up to the last 64 pointer locations since the last pointer event.

GetIntermediateTransformedPoints(IPointerPointTransform)

Retrieves the pointer data for up to the last 64 pointer locations since the last pointer event, transformed by the application-defined transform.

Applies to

See also