Поделиться через


InkCollectorGestureEventArgs.InkCollectorGestureEventArgs Constructor

InkCollectorGestureEventArgs.InkCollectorGestureEventArgs Constructor

Initializes a new instance of the InkCollectorGestureEventArgs event.

Definition

Visual Basic .NET Public Sub InkCollectorGestureEventArgs( _
ByVal cursor As Cursor, _
ByVal strokes As Strokes, _
ByVal gestures() As Gesture, _
ByVal cancel As Boolean _
)
C# public InkCollectorGestureEventArgs(
Cursor cursor,
Strokes strokes,
Gesture[] gestures,
bool cancel
);
Managed C++ public: InkCollectorGestureEventArgs(
Cursor *cursor,
Strokes *strokes,
Gesture *gestures __gc[],
bool *cancel
);

Parameters

cursor Microsoft.Ink.Cursor. The Cursor used to create the application gesture.
strokes Microsoft.Ink.Strokes. The Strokes collection that the gesture is make of.
gestures Microsoft.Ink.Gesture[]. An array of Gesture objects recognized, in order of confidence.
cancel System.Boolean. Set to true if the gesture was handled in the Gesture event handler (default value); otherwise false.

Remarks

The Cancel Leave Site property of the InkCollectorGestureEventArgs object indicates whether the Gesture event is cancelled by the InkCollector object. If set to true the Stroke object is treated as ink. If false the Stroke object triggers the Gesture. The application can subsequently decide whether to keep the ink as ink, or discard it altogether. The default value is false.

See Also