初始化 InkCollectorGestureEventArgs 事件的新实例。
命名空间: Microsoft.Ink
程序集: Microsoft.Ink(在 Microsoft.Ink.dll 中)
语法
声明
Public Sub New ( _
cursor As Cursor, _
strokes As Strokes, _
gestures As Gesture(), _
cancel As Boolean _
)
用法
Dim cursor As Cursor
Dim strokes As Strokes
Dim gestures As Gesture()
Dim cancel As Boolean
Dim instance As New InkCollectorGestureEventArgs(cursor, _
strokes, gestures, cancel)
public InkCollectorGestureEventArgs(
Cursor cursor,
Strokes strokes,
Gesture[] gestures,
bool cancel
)
public:
InkCollectorGestureEventArgs(
Cursor^ cursor,
Strokes^ strokes,
array<Gesture^>^ gestures,
bool cancel
)
public InkCollectorGestureEventArgs(
Cursor cursor,
Strokes strokes,
Gesture[] gestures,
boolean cancel
)
public function InkCollectorGestureEventArgs(
cursor : Cursor,
strokes : Strokes,
gestures : Gesture[],
cancel : boolean
)
参数
- cursor
类型:Microsoft.Ink.Cursor
用于创建应用程序笔势 的 Cursor。
- strokes
类型:Microsoft.Ink.Strokes
组成笔势的 Strokes 集合。
- gestures
类型:array<Microsoft.Ink.Gesture[]
已识别的 Gesture 对象的数组(按置信度的顺序排列)。
- cancel
类型:System.Boolean
用于指示是否已在 Gesture 事件处理程序中处理笔势的值。
如果已在 Gesture 事件处理程序中处理笔势,则为 true(默认值);否则为 false。
备注
InkCollectorGestureEventArgs 对象的 Cancel 属性指示 InkCollector 对象是否取消 Gesture 事件。如果设置为 true,则将 Stroke 对象视为墨迹。如果是 false,则 Stroke 对象触发 Gesture。应用程序随后可以决定是将墨迹保持为墨迹,还是一起放弃墨迹。默认值为 false。
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0
另请参见
参考
InkCollectorGestureEventArgs 类