PointerPointProperties Class
为 PointerPoint 对象提供扩展的属性。
注意 在许多情况下,我们建议您通过您选择的 Windows 8 语言结构获取指针信息(Windows Store 应用程序使用 JavaScript,使用 C++,C# 或 Visual Basic 构建的Windows Store 应用程序,或使用 C++ 的 DirectX 为 Windows 构建的Windows Store 应用程序)。与事件处理程序关联的 PointerPoint 在目标 UI 元素的上下文中提供信息,而 PointerPoint 方法(GetCurrentPoint 和 GetIntermediatePoints)则在父窗口或屏幕的上下文中提供信息。
语法
特性
- 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类 具有以下属性。
| 属性 | 访问类型 | 描述 |
|---|---|---|
| 只读 | Gets the bounding rectangle of the contact area (typically from touch input). | |
| 只读 | Gets the bounding rectangle of the raw input (typically from touch input). | |
| 只读 | Gets a value that indicates whether the barrel button of the pen/stylus device is pressed. | |
| 只读 | Gets a value that indicates whether the input was canceled by the pointer device. | |
| 只读 | Gets a value that indicates whether the input is from a digitizer eraser. | |
| 只读 | Gets a value that indicates whether the input is from a mouse tilt wheel. | |
| 只读 | Gets a value that indicates whether the pointer device is within detection range of a sensor or digitizer. | |
| 只读 | Gets a value that indicates whether the digitizer pen is inverted. | |
| 只读 | Gets a value that indicates whether the input is from the left button of a mouse or other input method. | |
| 只读 | Gets a value that indicates whether the input is from the middle button of a mouse or other input method. | |
| 只读 | Gets a value that indicates whether the input is from the primary pointer when multiple pointers are registered. | |
| 只读 | Gets a value that indicates whether the input is from the right button of a mouse or other input method. | |
| 只读 | Gets the pressed state of the first extended mouse button. | |
| 只读 | Gets the pressed state of the second extended mouse button. | |
| 只读 | Gets a value (the raw value reported by the device) that indicates the change in wheel button input from the last pointer event. | |
| 只读 | 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). | |
| 只读 | Gets the kind of pointer state change. | |
| 只读 | Gets a value that indicates the force that the pointer device (typically a pen/stylus) exerts on the surface of the digitizer. | |
| 只读 | Gets a value that indicates whether the pointer device rejected the touch contact. | |
| 只读 | 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). | |
| 只读 | 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). | |
| 只读 | 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 |
|
命名空间 |
|
|
元数据 |
|
另请参阅