HoldingEventArgs.CurrentContactCount 属性

定义

获取正在进行的 Windows.UI.Input.GestureRecognizer.Holding 事件的当前接触点数。

public:
 property unsigned int CurrentContactCount { unsigned int get(); };
uint32_t CurrentContactCount();
public uint CurrentContactCount { get; }
var uInt32 = holdingEventArgs.currentContactCount;
Public ReadOnly Property CurrentContactCount As UInteger

属性值

UInt32

unsigned int

uint32_t

接触点数。

Windows 要求

设备系列
Windows 10, version 2004 (在 10.0.19041.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v10.0 中引入)

注解

ContactCount 始终返回当前手势启动时检测到的联系人数。

CurrentContactCount 返回活动联系人数。 此数字可能等于 ContactCount,也可能不等于 ContactCount,因为可以在手势启动后添加或删除联系人。

适用于