展开 最小化
此主题尚未评级 - 评价此主题

PointerPointProperties Class

PointerPoint 对象提供扩展的属性。

注意  在许多情况下,我们建议您通过您选择的 Windows 8 语言结构获取指针信息(Windows Store 应用程序使用 JavaScript,使用 C++,C# 或 Visual Basic 构建的Windows Store 应用程序,或使用 C++ 的 DirectX 为 Windows 构建的Windows Store 应用程序)。与事件处理程序关联的 PointerPoint 在目标 UI 元素的上下文中提供信息,而 PointerPoint 方法(GetCurrentPointGetIntermediatePoints)则在父窗口或屏幕的上下文中提供信息。

语法

Public NotInheritable Class PointerPointProperties  
    Inherits Object

特性

MarshalingBehaviorAttribute(None)
VersionAttribute(NTDDI_WIN8)

成员

PointerPointProperties类 具有以下类型的成员:

方法

The PointerPointProperties 类 具有以下方法。 使用 C#、Visual Basic 和 C++,它还可以继承以下内容中的方法 Object 类.

方法描述
GetUsageValue Gets the Human Interface Device (HID) usage value of the raw input.
HasUsage Gets a value that indicates whether the input data from the pointer device contains the specified Human Interface Device (HID) usage information.

 

属性

PointerPointProperties类 具有以下属性。

属性访问类型描述

ContactRect

只读Gets the bounding rectangle of the contact area (typically from touch input).

ContactRectRaw

只读Gets the bounding rectangle of the raw input (typically from touch input).

IsBarrelButtonPressed

只读Gets a value that indicates whether the barrel button of the pen/stylus device is pressed.

IsCanceled

只读Gets a value that indicates whether the input was canceled by the pointer device.

IsEraser

只读Gets a value that indicates whether the input is from a digitizer eraser.

IsHorizontalMouseWheel

只读Gets a value that indicates whether the input is from a mouse tilt wheel.

IsInRange

只读Gets a value that indicates whether the pointer device is within detection range of a sensor or digitizer.

IsInverted

只读Gets a value that indicates whether the digitizer pen is inverted.

IsLeftButtonPressed

只读Gets a value that indicates whether the input is from the left button of a mouse or other input method.

IsMiddleButtonPressed

只读Gets a value that indicates whether the input is from the middle button of a mouse or other input method.

IsPrimary

只读Gets a value that indicates whether the input is from the primary pointer when multiple pointers are registered.

IsRightButtonPressed

只读Gets a value that indicates whether the input is from the right button of a mouse or other input method.

IsXButton1Pressed

只读Gets the pressed state of the first extended mouse button.

IsXButton2Pressed

只读Gets the pressed state of the second extended mouse button.

MouseWheelDelta

只读Gets a value (the raw value reported by the device) that indicates the change in wheel button input from the last pointer event.

Orientation

只读Gets the counter-clockwise angle of rotation around the major axis of the pointer device (the z-axis, perpendicular to the surface of the digitizer).

PointerUpdateKind

只读Gets the kind of pointer state change.

Pressure

只读Gets a value that indicates the force that the pointer device (typically a pen/stylus) exerts on the surface of the digitizer.

TouchConfidence

只读Gets a value that indicates whether the pointer device rejected the touch contact.

Twist

只读Gets the clockwise rotation in degrees of a pen device around its own major axis (such as when the user spins the pen in their fingers).

XTilt

只读Gets the plane angle between the Y-Z plane and the plane that contains the Y axis and the axis of the input device (typically a pen/stylus).

YTilt

只读Gets the plane angle between the X-Z plane and the plane that contains the X axis and the axis of the input device (typically a pen/stylus).

 

备注

PointerPointProperties 类实现 IPointerPointProperties。

注意  :此类不敏捷,这意味着您需要考虑其线程模型和封送行为。有关更多信息,请参见线程处理和封送处理 (C++/CX)在多线程环境中使用 Windows 运行时对象 (.NET)

示例

在以下示例中,我们使用 PointerPoint 对象查询各种扩展指针属性。

目前没有可用的代码示例或不支持该语言。

要求

最低受支持的客户端

Windows 8 [仅 Windows 应用商店应用]

最低受支持的服务器

Windows Server 2012 [仅 Windows 应用商店应用]

最低受支持的电话

Windows Phone 8

命名空间

Windows.UI.Input
Windows::UI::Input [C++]

元数据

Windows.winmd

另请参阅

Windows.UI.Input 类
Windows.UI.Input.PointerPoint.properties

 

 

本文是否对您有所帮助?
(1500 个剩余字符)
© 2013 Microsoft. 版权所有。