Sdílet prostřednictvím


InkCollectorGestureEventArgs Constructor

Initializes a new instance of the InkCollectorGestureEventArgs event.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public Sub New ( _
    cursor As Cursor, _
    strokes As Strokes, _
    gestures As Gesture(), _
    cancel As Boolean _
)
'Usage
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 function InkCollectorGestureEventArgs(
    cursor : Cursor, 
    strokes : Strokes, 
    gestures : Gesture[], 
    cancel : boolean
)

Parameters

  • cancel
    Type: System.Boolean

    A value that indicates whether the gesture was handled in the Gesture event handler.

    true (default) if the gesture was handled in the Gesture event handler; otherwise, false.

Remarks

The Cancel 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.

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkCollectorGestureEventArgs Class

InkCollectorGestureEventArgs Members

Microsoft.Ink Namespace

InkCollector.Gesture