TouchPoint 类

定义

表示来自多点触控消息源的单个触控点。Represents a single touch point from a multitouch message source.

public ref class TouchPoint : IEquatable<System::Windows::Input::TouchPoint ^>
public class TouchPoint : IEquatable<System.Windows.Input.TouchPoint>
type TouchPoint = class
    interface IEquatable<TouchPoint>
Public Class TouchPoint
Implements IEquatable(Of TouchPoint)
继承
TouchPoint
实现

构造函数

TouchPoint(TouchDevice, Point, Rect, TouchAction)

初始化 TouchPoint 类的新实例。Initializes a new instance of the TouchPoint class.

属性

Action

获取在此位置发生的最后一项操作。Gets the last action that occurred at this location.

Bounds

获取手指触屏区域的边界。Gets the bounds of the area that the finger has in contact with the screen.

Position

获取触点的位置。Gets the location of the touch point.

Size

获取 Bounds 属性的大小。Gets the size of the Bounds property.

TouchDevice

获取生成了此 TouchPoint 的触摸设备。Gets the touch device that generated this TouchPoint.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

IEquatable<TouchPoint>.Equals(TouchPoint)

指示当前对象是否等于另一个 TouchPointIndicates whether the current object is equal to another TouchPoint.

适用于